{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.1h67LjL9/b1/python-inline-snapshot_0.23.2-1_amd64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.1h67LjL9/b2/python-inline-snapshot_0.23.2-1_amd64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,3 +1,3 @@\n \n- 7ad60a7193c0030fe8d93355d115e281 707044 doc optional python-inline-snapshot-doc_0.23.2-1_all.deb\n+ c2291935bedfc2d30cc0604ee10e89a7 707044 doc optional python-inline-snapshot-doc_0.23.2-1_all.deb\n 3ca8cdc29d570944d716a7a3084739c2 41540 python optional python3-inline-snapshot_0.23.2-1_all.deb\n"}, {"source1": "python-inline-snapshot-doc_0.23.2-1_all.deb", "source2": "python-inline-snapshot-doc_0.23.2-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": "@@ -1267,47 +1267,47 @@\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n \n
> pytest test_something.py --inline-snapshot=create,report\n ERROR: 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.xL62RcC3hy\n+  rootdir: /tmp/tmp.SsWLDu2xte\n \n 
\n

--inline-snapshot=short-report

\n

give a short report over which changes can be made to the snapshots

\n
> pytest test_something.py --inline-snapshot=short-report\n ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]\n __main__.py: error: unrecognized arguments: --inline-snapshot=short-report\n   inifile: None\n-  rootdir: /tmp/tmp.sEgRm60DaK\n+  rootdir: /tmp/tmp.4h5VxUWWyh\n \n 
\n
\n

Info

\n

short-report exists mainly to show that snapshots have changed with enabled pytest assert-rewriting.\n This option will be replaced with report when this restriction is lifted.

\n
\n

--inline-snapshot=report

\n

Shows a diff report over which changes can be made to the snapshots

\n
> pytest test_something.py --inline-snapshot=report\n ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=report\n   inifile: None\n-  rootdir: /tmp/tmp.jQRfc7ACLY\n+  rootdir: /tmp/tmp.UYSHtRNKAM\n \n 
\n

--inline-snapshot=review

\n

Shows a diff report for each category and ask if you want to apply the changes

\n
> pytest test_something.py --inline-snapshot=review\n ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=review\n   inifile: None\n-  rootdir: /tmp/tmp.IaEueLGyNr\n+  rootdir: /tmp/tmp.AR7vUx7lzP\n \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": "@@ -77,43 +77,43 @@\n def test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n > pytest test_something.py --inline-snapshot=create,report\n ERROR: 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.xL62RcC3hy\n+ rootdir: /tmp/tmp.SsWLDu2xte\n \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 > pytest test_something.py --inline-snapshot=short-report\n ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]\n __main__.py: error: unrecognized arguments: --inline-snapshot=short-report\n inifile: None\n- rootdir: /tmp/tmp.sEgRm60DaK\n+ rootdir: /tmp/tmp.4h5VxUWWyh\n \n Info\n short-report exists mainly to show that snapshots have changed with enabled\n pytest assert-rewriting. This option will be replaced with r\bre\bep\bpo\bor\brt\bt when this\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 > pytest test_something.py --inline-snapshot=report\n ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=report\n inifile: None\n- rootdir: /tmp/tmp.jQRfc7ACLY\n+ rootdir: /tmp/tmp.UYSHtRNKAM\n \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 > pytest test_something.py --inline-snapshot=review\n ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\n pytest: error: unrecognized arguments: --inline-snapshot=review\n inifile: None\n- rootdir: /tmp/tmp.IaEueLGyNr\n+ rootdir: /tmp/tmp.AR7vUx7lzP\n \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", "unified_diff": "@@ -1132,30 +1132,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
> pytest test_something.py --inline-snapshot=create,report\\nERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=create,report\\n  inifile: None\\n  rootdir: /tmp/tmp.xL62RcC3hy\\n\\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
> pytest test_something.py --inline-snapshot=create,report\\nERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=create,report\\n  inifile: None\\n  rootdir: /tmp/tmp.SsWLDu2xte\\n\\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

> pytest test_something.py --inline-snapshot=short-report\\nERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]\\n__main__.py: error: unrecognized arguments: --inline-snapshot=short-report\\n  inifile: None\\n  rootdir: /tmp/tmp.sEgRm60DaK\\n\\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+ \"text\": \"

give a short report over which changes can be made to the snapshots

> pytest test_something.py --inline-snapshot=short-report\\nERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]\\n__main__.py: error: unrecognized arguments: --inline-snapshot=short-report\\n  inifile: None\\n  rootdir: /tmp/tmp.4h5VxUWWyh\\n\\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

> pytest test_something.py --inline-snapshot=report\\nERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=report\\n  inifile: None\\n  rootdir: /tmp/tmp.jQRfc7ACLY\\n\\n
\",\n+ \"text\": \"

Shows a diff report over which changes can be made to the snapshots

> pytest test_something.py --inline-snapshot=report\\nERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=report\\n  inifile: None\\n  rootdir: /tmp/tmp.UYSHtRNKAM\\n\\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

> pytest test_something.py --inline-snapshot=review\\nERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=review\\n  inifile: None\\n  rootdir: /tmp/tmp.IaEueLGyNr\\n\\n
\",\n+ \"text\": \"

Shows a diff report for each category and ask if you want to apply the changes

> pytest test_something.py --inline-snapshot=review\\nERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\\npytest: error: unrecognized arguments: --inline-snapshot=review\\n  inifile: None\\n  rootdir: /tmp/tmp.AR7vUx7lzP\\n\\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"}]}]}]}]}]}