{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.qp7tnL2X/b1/python-inline-snapshot_0.13.3-1_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.qp7tnL2X/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- a93eb4e011e875716554521c1cc06b97 530684 doc optional python-inline-snapshot-doc_0.13.3-1_all.deb\n+ 5010e9f4b78edd981491c3d6f9dffeca 530684 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": "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.1szbcvyiol\n+  rootdir: /tmp/tmp.V9B4gtxd2r\n \u001b[0m\n 
\n

--inline-snapshot=short-report

\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 
\n@@ -967,24 +967,24 @@\n \n

--inline-snapshot=report

\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.qrJ6lr0JRK\n+  rootdir: /tmp/tmp.QHaV5DVy3U\n \u001b[0m\n 
\n

--inline-snapshot=review

\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.cXsmqrNBJf\n+  rootdir: /tmp/tmp.d51pWtBhO0\n \u001b[0m\n 
\n

--inline-snapshot=disable

\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.

\n
\n

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.1szbcvyiol\n+ rootdir: /tmp/tmp.V9B4gtxd2r\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.qrJ6lr0JRK\n+ rootdir: /tmp/tmp.QHaV5DVy3U\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.cXsmqrNBJf\n+ rootdir: /tmp/tmp.d51pWtBhO0\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.py
from 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.py
from 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.1szbcvyiol\\n\\u001b[0m\\n
\",\n+ \"text\": \"

Approve the changes of the given category. These flags can be combined with report and review.

test_something.py
from 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.V9B4gtxd2r\\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.qrJ6lr0JRK\\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.QHaV5DVy3U\\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.cXsmqrNBJf\\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.d51pWtBhO0\\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"}]}]}]}]}]}