{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.GaNH6Nqw/b1/python-inline-snapshot_0.22.3-1_i386.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.GaNH6Nqw/b2/python-inline-snapshot_0.22.3-1_i386.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,3 +1,3 @@\n \n- e607874ef10f3ebe8a47558fdac8848c 706712 doc optional python-inline-snapshot-doc_0.22.3-1_all.deb\n+ ad39610e8e617da13428265b99dd8b53 706700 doc optional python-inline-snapshot-doc_0.22.3-1_all.deb\n dd902da5ab7e5b5c3bd535a9a8c3676e 40892 python optional python3-inline-snapshot_0.22.3-1_all.deb\n"}, {"source1": "python-inline-snapshot-doc_0.22.3-1_all.deb", "source2": "python-inline-snapshot-doc_0.22.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 2025-04-16 12:16:02.000000 debian-binary\n -rw-r--r-- 0 0 0 3156 2025-04-16 12:16:02.000000 control.tar.xz\n--rw-r--r-- 0 0 0 703364 2025-04-16 12:16:02.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 703352 2025-04-16 12:16:02.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": "@@ -1266,16 +1266,16 @@\n def test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n \n
> pytest test_something.py --inline-snapshot=create,report\n ============================= test session starts ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.bBef7lgTjW\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.i9NKsolmO2\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E                                                     [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n +----------------------------- test_something.py ------------------------------+\n@@ -1307,23 +1307,23 @@\n \n \n ==================================== ERRORS ====================================\n _____________________ ERROR at teardown of test_something ______________________\n your snapshot is missing one value.\n =========================== short test summary info ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n-========================== 1 passed, 1 error in 0.40s ==========================\n+========================== 1 passed, 1 error in 0.21s ==========================\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 ============================= test session starts ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.9wp8RUGfpc\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.vnP8YxcqSU\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E                                                     [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n Info: one snapshot can be trimmed (--inline-snapshot=trim)\n Error: one snapshot is missing a value (--inline-snapshot=create)\n@@ -1332,28 +1332,28 @@\n \n \n ==================================== ERRORS ====================================\n _____________________ ERROR at teardown of test_something ______________________\n your snapshot is missing one value.\n =========================== short test summary info ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n-========================== 1 passed, 1 error in 0.90s ==========================\n+========================== 1 passed, 1 error in 0.20s ==========================\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 ============================= test session starts ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.NN7TaFBHVI\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.fDYYiU2zRp\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E                                                     [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n +----------------------------- test_something.py ------------------------------+\n@@ -1387,23 +1387,23 @@\n \n \n ==================================== ERRORS ====================================\n _____________________ ERROR at teardown of test_something ______________________\n your snapshot is missing one value.\n =========================== short test summary info ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n-========================== 1 passed, 1 error in 0.53s ==========================\n+========================== 1 passed, 1 error in 0.21s ==========================\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 ============================= test session starts ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.YdeBbfiXg4\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.c67fjMO5oB\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E                                                     [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n +----------------------------- test_something.py ------------------------------+\n@@ -1431,15 +1431,15 @@\n \n \n ==================================== ERRORS ====================================\n _____________________ ERROR at teardown of test_something ______________________\n your snapshot is missing one value.\n =========================== short test summary info ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n-========================== 1 passed, 1 error in 0.94s ==========================\n+========================== 1 passed, 1 error in 0.21s ==========================\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

This option was previously called --inline-snapshot-disable

\n", "details": [{"source1": "html2text {}", "source2": "html2text {}", "unified_diff": "@@ -77,17 +77,17 @@\n def test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n > pytest test_something.py --inline-snapshot=create,report\n ============================= test session starts\n ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.bBef7lgTjW\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-\n-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.i9NKsolmO2\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3,\n+subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots\n@@ -145,25 +145,25 @@\n _____________________ ERROR at teardown of test_something\n ______________________\n your snapshot is missing one value.\n =========================== short test summary info\n ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one\n value.\n-========================== 1 passed, 1 error in 0.40s\n+========================== 1 passed, 1 error in 0.21s\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 ============================= test session starts\n ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.9wp8RUGfpc\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-\n-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.vnP8YxcqSU\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3,\n+subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n Info: one snapshot can be trimmed (--inline-snapshot=trim)\n@@ -177,29 +177,29 @@\n _____________________ ERROR at teardown of test_something\n ______________________\n your snapshot is missing one value.\n =========================== short test summary info\n ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one\n value.\n-========================== 1 passed, 1 error in 0.90s\n+========================== 1 passed, 1 error in 0.20s\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 ============================= test session starts\n ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.NN7TaFBHVI\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-\n-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.fDYYiU2zRp\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3,\n+subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots\n@@ -259,25 +259,25 @@\n _____________________ ERROR at teardown of test_something\n ______________________\n your snapshot is missing one value.\n =========================== short test summary info\n ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one\n value.\n-========================== 1 passed, 1 error in 0.53s\n+========================== 1 passed, 1 error in 0.21s\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 ============================= test session starts\n ==============================\n platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\n-rootdir: /tmp/tmp.YdeBbfiXg4\n-plugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-\n-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\n+rootdir: /tmp/tmp.c67fjMO5oB\n+plugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3,\n+subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\n collected 1 item\n \n test_something.py .E [100%]\n \n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 inline-snapshot\n \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots\n@@ -331,15 +331,15 @@\n _____________________ ERROR at teardown of test_something\n ______________________\n your snapshot is missing one value.\n =========================== short test summary info\n ============================\n ERROR test_something.py::test_something - Failed: your snapshot is missing one\n value.\n-========================== 1 passed, 1 error in 0.94s\n+========================== 1 passed, 1 error in 0.21s\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", "comments": ["Similarity: 0.9992877492877493%", "Differences: {\"'docs'\": \"{218: {'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\\\\n============================= test session starts '", "           '============== [\u2026]"], "unified_diff": "@@ -1097,30 +1097,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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.bBef7lgTjW\\nplugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Create snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -2,5 +2,5 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n| -    assert 1 == snapshot()                                                  |\\n| +    assert 1 == snapshot(1)                                                 |\\n|      assert 2 <= snapshot(5)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes will be applied, because you used create\\n\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Trim snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -3,4 +3,4 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n|      assert 1 == snapshot(1)                                                 |\\n| -    assert 2 <= snapshot(5)                                                 |\\n| +    assert 2 <= snapshot(2)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes are not applied.\\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \\n--inline-snapshot=review\\n\\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.40s ==========================\\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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.i9NKsolmO2\\nplugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Create snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -2,5 +2,5 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n| -    assert 1 == snapshot()                                                  |\\n| +    assert 1 == snapshot(1)                                                 |\\n|      assert 2 <= snapshot(5)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes will be applied, because you used create\\n\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Trim snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -3,4 +3,4 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n|      assert 1 == snapshot(1)                                                 |\\n| -    assert 2 <= snapshot(5)                                                 |\\n| +    assert 2 <= snapshot(2)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes are not applied.\\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \\n--inline-snapshot=review\\n\\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.21s ==========================\\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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.9wp8RUGfpc\\nplugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\nInfo: one snapshot can be trimmed (--inline-snapshot=trim)\\nError: one snapshot is missing a value (--inline-snapshot=create)\\n\\nYou can also use --inline-snapshot=review to approve the changes interactively\\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.90s ==========================\\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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.vnP8YxcqSU\\nplugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\nInfo: one snapshot can be trimmed (--inline-snapshot=trim)\\nError: one snapshot is missing a value (--inline-snapshot=create)\\n\\nYou can also use --inline-snapshot=review to approve the changes interactively\\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.20s ==========================\\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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.NN7TaFBHVI\\nplugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Create snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -2,5 +2,5 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n| -    assert 1 == snapshot()                                                  |\\n| +    assert 1 == snapshot(1)                                                 |\\n|      assert 2 <= snapshot(5)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes are not applied.\\nUse --inline-snapshot=create to apply them, or use the interactive mode with \\n--inline-snapshot=review\\n\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Trim snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -3,4 +3,4 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n|      assert 1 == snapshot()                                                  |\\n| -    assert 2 <= snapshot(5)                                                 |\\n| +    assert 2 <= snapshot(2)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes are not applied.\\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \\n--inline-snapshot=review\\n\\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.53s ==========================\\n
\",\n+ \"text\": \"

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

> pytest test_something.py --inline-snapshot=report\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.fDYYiU2zRp\\nplugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Create snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -2,5 +2,5 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n| -    assert 1 == snapshot()                                                  |\\n| +    assert 1 == snapshot(1)                                                 |\\n|      assert 2 <= snapshot(5)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes are not applied.\\nUse --inline-snapshot=create to apply them, or use the interactive mode with \\n--inline-snapshot=review\\n\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Trim snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -3,4 +3,4 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n|      assert 1 == snapshot()                                                  |\\n| -    assert 2 <= snapshot(5)                                                 |\\n| +    assert 2 <= snapshot(2)                                                 |\\n+------------------------------------------------------------------------------+\\nThese changes are not applied.\\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \\n--inline-snapshot=review\\n\\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.21s ==========================\\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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.YdeBbfiXg4\\nplugins: hypothesis-6.130.5, mock-3.14.0, subtests-0.13.1, inline-snapshot-0.22.3, pytest_freezer-0.4.9, time-machine-2.16.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Create snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -2,5 +2,5 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n| -    assert 1 == snapshot()                                                  |\\n| +    assert 1 == snapshot(1)                                                 |\\n|      assert 2 <= snapshot(5)                                                 |\\n+------------------------------------------------------------------------------+\\nDo you want to create these snapshots? [y/n] (n): \\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Trim snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -3,4 +3,4 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n|      assert 1 == snapshot(1)                                                 |\\n| -    assert 2 <= snapshot(5)                                                 |\\n| +    assert 2 <= snapshot(2)                                                 |\\n+------------------------------------------------------------------------------+\\nDo you want to trim these snapshots? [y/n] (n): \\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.94s ==========================\\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\\n============================= test session starts ==============================\\nplatform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0\\nrootdir: /tmp/tmp.c67fjMO5oB\\nplugins: time-machine-2.16.0, pytest_freezer-0.4.9, inline-snapshot-0.22.3, subtests-0.13.1, hypothesis-6.130.5, mock-3.14.0\\ncollected 1 item\\n\\ntest_something.py .E                                                     [100%]\\n\\n\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550 inline-snapshot \\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Create snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -2,5 +2,5 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n| -    assert 1 == snapshot()                                                  |\\n| +    assert 1 == snapshot(1)                                                 |\\n|      assert 2 <= snapshot(5)                                                 |\\n+------------------------------------------------------------------------------+\\nDo you want to create these snapshots? [y/n] (n): \\n\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500 Trim snapshots \\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\n+----------------------------- test_something.py ------------------------------+\\n| @@ -3,4 +3,4 @@                                                              |\\n|                                                                              |\\n|                                                                              |\\n|  def test_something():                                                       |\\n|      assert 1 == snapshot(1)                                                 |\\n| -    assert 2 <= snapshot(5)                                                 |\\n| +    assert 2 <= snapshot(2)                                                 |\\n+------------------------------------------------------------------------------+\\nDo you want to trim these snapshots? [y/n] (n): \\n\\n\\n==================================== ERRORS ====================================\\n_____________________ ERROR at teardown of test_something ______________________\\nyour snapshot is missing one value.\\n=========================== short test summary info ============================\\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\\n========================== 1 passed, 1 error in 0.21s ==========================\\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"}]}]}]}]}]}