{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.EjyASzHo/b1/python-inline-snapshot_0.13.3-1_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.EjyASzHo/b2/python-inline-snapshot_0.13.3-1_amd64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,3 +1,3 @@\n \n- 92c40875c8ba0599aaca669984fdf168 530680 doc optional python-inline-snapshot-doc_0.13.3-1_all.deb\n+ 2b7cb93116dc44376a842abbe50dfc8e 530692 doc optional python-inline-snapshot-doc_0.13.3-1_all.deb\n a133f6b76d1775b4c19bfe3081df11f2 27204 python optional python3-inline-snapshot_0.13.3-1_all.deb\n"}, {"source1": "python-inline-snapshot-doc_0.13.3-1_all.deb", "source2": "python-inline-snapshot-doc_0.13.3-1_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-10-12 17:32:27.000000 debian-binary\n--rw-r--r-- 0 0 0 3000 2024-10-12 17:32:27.000000 control.tar.xz\n--rw-r--r-- 0 0 0 527488 2024-10-12 17:32:27.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 3004 2024-10-12 17:32:27.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 527496 2024-10-12 17:32:27.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "./usr/share/doc/python-inline-snapshot-doc/html/pytest.html", "source2": "./usr/share/doc/python-inline-snapshot-doc/html/pytest.html", "unified_diff": "@@ -948,15 +948,15 @@\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n \n
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n \u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=create,report\n inifile: None\n- rootdir: /tmp/tmp.2u8e4lLFUU\n+ rootdir: /tmp/tmp.mCr95HWpKw\n \u001b[0m\n
give a short report over which changes can be made to the snapshots
\n\u001b[1;34m> pytest test_something.py --inline-snapshot=short-report\n \u001b[0menvironment: line 10: python: command not found\n
Shows a diff report over which changes can be made to the snapshots
\n\u001b[1;34m> pytest test_something.py --inline-snapshot=report\n \u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=report\n inifile: None\n- rootdir: /tmp/tmp.BXnnyCutDi\n+ rootdir: /tmp/tmp.SDzoenXrua\n \u001b[0m\n
Shows a diff report for each category and ask if you want to apply the changes
\n\u001b[1;34m> pytest test_something.py --inline-snapshot=review\n \u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=review\n inifile: None\n- rootdir: /tmp/tmp.OD8PUf8yC8\n+ rootdir: /tmp/tmp.Xt1x2KD9qF\n \u001b[0m\n
Disables all the snapshot logic. snapshot(x)
will just return x
.\n This can be used if you think exclude that snapshot logic causes a problem in your tests, or if you want to speedup your CI.
deprecation
\n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -65,15 +65,15 @@\n def test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n [1;34m> pytest test_something.py --inline-snapshot=create,report\n [0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=create,report\n inifile: None\n- rootdir: /tmp/tmp.2u8e4lLFUU\n+ rootdir: /tmp/tmp.mCr95HWpKw\n [0m\n *\b**\b**\b**\b**\b* -\b--\b-i\bin\bnl\bli\bin\bne\be-\b-s\bsn\bna\bap\bps\bsh\bho\bot\bt=\b=s\bsh\bho\bor\brt\bt-\b-r\bre\bep\bpo\bor\brt\bt_\b?\b\u00b6 *\b**\b**\b**\b**\b*\n give a short report over which changes can be made to the snapshots\n [1;34m> pytest test_something.py --inline-snapshot=short-report\n [0menvironment: line 10: python: command not found\n Info\n short-report exists mainly to show that snapshots have changed with enabled\n@@ -81,23 +81,23 @@\n restriction is lifted.\n *\b**\b**\b**\b**\b* -\b--\b-i\bin\bnl\bli\bin\bne\be-\b-s\bsn\bna\bap\bps\bsh\bho\bot\bt=\b=r\bre\bep\bpo\bor\brt\bt_\b?\b\u00b6 *\b**\b**\b**\b**\b*\n Shows a diff report over which changes can be made to the snapshots\n [1;34m> pytest test_something.py --inline-snapshot=report\n [0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=report\n inifile: None\n- rootdir: /tmp/tmp.BXnnyCutDi\n+ rootdir: /tmp/tmp.SDzoenXrua\n [0m\n *\b**\b**\b**\b**\b* -\b--\b-i\bin\bnl\bli\bin\bne\be-\b-s\bsn\bna\bap\bps\bsh\bho\bot\bt=\b=r\bre\bev\bvi\bie\bew\bw_\b?\b\u00b6 *\b**\b**\b**\b**\b*\n Shows a diff report for each category and ask if you want to apply the changes\n [1;34m> pytest test_something.py --inline-snapshot=review\n [0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=review\n inifile: None\n- rootdir: /tmp/tmp.OD8PUf8yC8\n+ rootdir: /tmp/tmp.Xt1x2KD9qF\n [0m\n *\b**\b**\b**\b**\b* -\b--\b-i\bin\bnl\bli\bin\bne\be-\b-s\bsn\bna\bap\bps\bsh\bho\bot\bt=\b=d\bdi\bis\bsa\bab\bbl\ble\be_\b?\b\u00b6 *\b**\b**\b**\b**\b*\n Disables all the snapshot logic. snapshot(x) will just return x. This can be\n used if you think exclude that snapshot logic causes a problem in your tests,\n or if you want to speedup your CI.\n deprecation\n This option was previously called --inline-snapshot-disable\n"}]}, {"source1": "./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json", "source2": "./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json", "unified_diff": null, "details": [{"source1": "Pretty-printed", "source2": "Pretty-printed", "comments": ["Similarity: 0.9990671641791045%", "Differences: {\"'docs'\": \"{118: {'text': 'Approve the changes of the given category. These flags can be \"", " 'combined with report and review.
test_something.pyfrom inline_snapshot '", " 'import snapshot\\\\n\\\\n\\\\ndef test_something():\\\\n assert 1 == snapshot()\\\\n '", " 'assert 2 <= snapshot(5)\\\\n
\\\\x1b[1;34m> pytest '", " 'test_something.py --inline-snapshot=create,report\\\\n\\\\x1b[0m\\\\x1b[31mERROR: usage: '", " 'pytest [options] [file [\u2026]"], "unified_diff": "@@ -597,30 +597,30 @@\n {\n \"location\": \"pytest.html\",\n \"text\": \"inline-snapshot provides one pytest option with different flags (create, fix, trim, update, short-report, report, disable).
Snapshot comparisons return always True
if you use one of the flags create, fix or review. This is necessary because the whole test needs to be run to fix all snapshots like in this case:
from inline_snapshot import snapshot\\n\\n\\ndef test_something():\\n assert 1 == snapshot(5)\\n assert 2 <= snapshot(5)\\n
Note
Every flag with the exception of disable and short-report disables the pytest assert-rewriting.
\",\n \"title\": \"pytest integration\"\n },\n {\n \"location\": \"pytest.html#-inline-snapshotcreatefixtrimupdate\",\n- \"text\": \"Approve the changes of the given category. These flags can be combined with report and review.
test_something.pyfrom inline_snapshot import snapshot\\n\\n\\ndef test_something():\\n assert 1 == snapshot()\\n assert 2 <= snapshot(5)\\n
\\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\\n\\u001b[0m\\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=create,report\\n inifile: None\\n rootdir: /tmp/tmp.2u8e4lLFUU\\n\\u001b[0m\\n
\",\n+ \"text\": \"Approve the changes of the given category. These flags can be combined with report and review.
test_something.pyfrom inline_snapshot import snapshot\\n\\n\\ndef test_something():\\n assert 1 == snapshot()\\n assert 2 <= snapshot(5)\\n
\\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\\n\\u001b[0m\\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=create,report\\n inifile: None\\n rootdir: /tmp/tmp.mCr95HWpKw\\n\\u001b[0m\\n
\",\n \"title\": \"--inline-snapshot=create,fix,trim,update\"\n },\n {\n \"location\": \"pytest.html#-inline-snapshotshort-report\",\n \"text\": \"give a short report over which changes can be made to the snapshots
\\u001b[1;34m> pytest test_something.py --inline-snapshot=short-report\\n\\u001b[0menvironment: line 10: python: command not found\\n
Info
short-report exists mainly to show that snapshots have changed with enabled pytest assert-rewriting. This option will be replaced with report when this restriction is lifted.
\",\n \"title\": \"--inline-snapshot=short-report\"\n },\n {\n \"location\": \"pytest.html#-inline-snapshotreport\",\n- \"text\": \"Shows a diff report over which changes can be made to the snapshots
\\u001b[1;34m> pytest test_something.py --inline-snapshot=report\\n\\u001b[0m\\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=report\\n inifile: None\\n rootdir: /tmp/tmp.BXnnyCutDi\\n\\u001b[0m\\n
\",\n+ \"text\": \"Shows a diff report over which changes can be made to the snapshots
\\u001b[1;34m> pytest test_something.py --inline-snapshot=report\\n\\u001b[0m\\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=report\\n inifile: None\\n rootdir: /tmp/tmp.SDzoenXrua\\n\\u001b[0m\\n
\",\n \"title\": \"--inline-snapshot=report\"\n },\n {\n \"location\": \"pytest.html#-inline-snapshotreview\",\n- \"text\": \"Shows a diff report for each category and ask if you want to apply the changes
\\u001b[1;34m> pytest test_something.py --inline-snapshot=review\\n\\u001b[0m\\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=review\\n inifile: None\\n rootdir: /tmp/tmp.OD8PUf8yC8\\n\\u001b[0m\\n
\",\n+ \"text\": \"Shows a diff report for each category and ask if you want to apply the changes
\\u001b[1;34m> pytest test_something.py --inline-snapshot=review\\n\\u001b[0m\\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=review\\n inifile: None\\n rootdir: /tmp/tmp.Xt1x2KD9qF\\n\\u001b[0m\\n
\",\n \"title\": \"--inline-snapshot=review\"\n },\n {\n \"location\": \"pytest.html#-inline-snapshotdisable\",\n \"text\": \"Disables all the snapshot logic. snapshot(x)
will just return x
. This can be used if you think exclude that snapshot logic causes a problem in your tests, or if you want to speedup your CI.
deprecation
This option was previously called --inline-snapshot-disable
\",\n \"title\": \"--inline-snapshot=disable\"\n },\n"}]}]}]}]}]}