--- /srv/reproducible-results/rbuild-debian/r-b-build.U0sJqYm8/b1/python-inline-snapshot_0.20.3-1_amd64.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.U0sJqYm8/b2/python-inline-snapshot_0.20.3-1_amd64.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - e91a1edaddb2287369df11bb25fa264e 538656 doc optional python-inline-snapshot-doc_0.20.3-1_all.deb │ + 8cc57e5994db3a064430e3af7c4b0eab 538648 doc optional python-inline-snapshot-doc_0.20.3-1_all.deb │ f36bb98c40b4c72a83311639693f2415 38036 python optional python3-inline-snapshot_0.20.3-1_all.deb ├── python-inline-snapshot-doc_0.20.3-1_all.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2025-03-01 06:03:55.000000 debian-binary │ │ -rw-r--r-- 0 0 0 3040 2025-03-01 06:03:55.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 535424 2025-03-01 06:03:55.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 535416 2025-03-01 06:03:55.000000 data.tar.xz │ ├── control.tar.xz │ │ ├── control.tar │ │ │ ├── ./md5sums │ │ │ │ ├── ./md5sums │ │ │ │ │┄ Files differ │ ├── data.tar.xz │ │ ├── data.tar │ │ │ ├── ./usr/share/doc/python-inline-snapshot-doc/html/pytest.html │ │ │ │ @@ -1184,16 +1184,16 @@ │ │ │ │ def test_something(): │ │ │ │ assert 1 == snapshot() │ │ │ │ assert 2 <= snapshot(5) │ │ │ │ │ │ │ │
> pytest test_something.py --inline-snapshot=create,report
│ │ │ │ ============================= test session starts ==============================
│ │ │ │ platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.X7kcJNmWDc
│ │ │ │ -plugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0
│ │ │ │ +rootdir: /tmp/tmp.gXCNDwCfQJ
│ │ │ │ +plugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py . [100%]
│ │ │ │ =============================== inline snapshot ================================
│ │ │ │ ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │ +----------------------------- test_something.py ------------------------------+
│ │ │ │ | @@ -2,5 +2,5 @@ |
│ │ │ │ @@ -1218,51 +1218,51 @@
│ │ │ │ | + assert 2 <= snapshot(2) |
│ │ │ │ +------------------------------------------------------------------------------+
│ │ │ │ These changes are not applied.
│ │ │ │ Use --inline-snapshot=trim to apply them, or use the interactive mode with
│ │ │ │ --inline-snapshot=review
│ │ │ │
│ │ │ │
│ │ │ │ -============================== 1 passed in 0.68s ===============================
│ │ │ │ +============================== 1 passed in 0.55s ===============================
│ │ │ │
give a short report over which changes can be made to the snapshots
│ │ │ │> pytest test_something.py --inline-snapshot=short-report
│ │ │ │ ============================= test session starts ==============================
│ │ │ │ platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.pDhl3pL7Ye
│ │ │ │ -plugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0
│ │ │ │ +rootdir: /tmp/tmp.GtexSUCZ4q
│ │ │ │ +plugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py .E [100%]
│ │ │ │
│ │ │ │ ==================================== ERRORS ====================================
│ │ │ │ _____________________ ERROR at teardown of test_something ______________________
│ │ │ │ your snapshot is missing one value.
│ │ │ │ =============================== inline snapshot ================================
│ │ │ │ Info: one snapshot can be trimmed (--inline-snapshot=trim)
│ │ │ │ Error: one snapshot is missing a value (--inline-snapshot=create)
│ │ │ │
│ │ │ │ You can also use --inline-snapshot=review to approve the changes interactively
│ │ │ │ =========================== short test summary info ============================
│ │ │ │ ERROR test_something.py::test_something - Failed: your snapshot is missing one value.
│ │ │ │ -========================== 1 passed, 1 error in 0.22s ==========================
│ │ │ │ +========================== 1 passed, 1 error in 0.57s ==========================
│ │ │ │
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.
│ │ │ │Shows a diff report over which changes can be made to the snapshots
│ │ │ │> pytest test_something.py --inline-snapshot=report
│ │ │ │ ============================= test session starts ==============================
│ │ │ │ platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.hONnnFkFE5
│ │ │ │ -plugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0
│ │ │ │ +rootdir: /tmp/tmp.cCAI6V9PUa
│ │ │ │ +plugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py .E [100%]
│ │ │ │
│ │ │ │ ==================================== ERRORS ====================================
│ │ │ │ _____________________ ERROR at teardown of test_something ______________________
│ │ │ │ your snapshot is missing one value.
│ │ │ │ @@ -1294,23 +1294,23 @@
│ │ │ │ +------------------------------------------------------------------------------+
│ │ │ │ These changes are not applied.
│ │ │ │ Use --inline-snapshot=trim to apply them, or use the interactive mode with
│ │ │ │ --inline-snapshot=review
│ │ │ │
│ │ │ │ =========================== short test summary info ============================
│ │ │ │ ERROR test_something.py::test_something - Failed: your snapshot is missing one value.
│ │ │ │ -========================== 1 passed, 1 error in 0.43s ==========================
│ │ │ │ +========================== 1 passed, 1 error in 0.51s ==========================
│ │ │ │
Shows a diff report for each category and ask if you want to apply the changes
│ │ │ │> pytest test_something.py --inline-snapshot=review
│ │ │ │ ============================= test session starts ==============================
│ │ │ │ platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.VhbSeNc7Ux
│ │ │ │ -plugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0
│ │ │ │ +rootdir: /tmp/tmp.tNVWNv5arQ
│ │ │ │ +plugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py . [100%]
│ │ │ │ =============================== inline snapshot ================================
│ │ │ │ ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │ +----------------------------- test_something.py ------------------------------+
│ │ │ │ | @@ -2,5 +2,5 @@ |
│ │ │ │ @@ -1331,15 +1331,15 @@
│ │ │ │ | def test_something(): |
│ │ │ │ | assert 1 == snapshot(1) |
│ │ │ │ | - assert 2 <= snapshot(5) |
│ │ │ │ | + assert 2 <= snapshot(2) |
│ │ │ │ +------------------------------------------------------------------------------+
│ │ │ │ do you want to trim these snapshots? [y/n] (n):
│ │ │ │
│ │ │ │ -============================== 1 passed in 0.58s ===============================
│ │ │ │ +============================== 1 passed in 0.45s ===============================
│ │ │ │
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
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
> pytest test_something.py '
│ │ │ │ │┄ '--inline-snapshot=create,report\\n============================= test session starts '
│ │ │ │ │┄ '============== […]
│ │ │ │ │ @@ -902,30 +902,30 @@
│ │ │ │ │ {
│ │ │ │ │ "location": "pytest.html",
│ │ │ │ │ "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.
",
│ │ │ │ │ "title": "pytest integration"
│ │ │ │ │ },
│ │ │ │ │ {
│ │ │ │ │ "location": "pytest.html#-inline-snapshotcreatefixtrimupdate",
│ │ │ │ │ - "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
> pytest test_something.py --inline-snapshot=create,report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.X7kcJNmWDc\nplugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\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 --inline-snapshot=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============================== 1 passed in 0.68s ===============================\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
> pytest test_something.py --inline-snapshot=create,report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.gXCNDwCfQJ\nplugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\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 --inline-snapshot=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============================== 1 passed in 0.55s ===============================\n
",
│ │ │ │ │ "title": "--inline-snapshot=create,fix,trim,update"
│ │ │ │ │ },
│ │ │ │ │ {
│ │ │ │ │ "location": "pytest.html#-inline-snapshotshort-report",
│ │ │ │ │ - "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.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.pDhl3pL7Ye\nplugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\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=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.22s ==========================\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.
",
│ │ │ │ │ + "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.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.GtexSUCZ4q\nplugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\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=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.57s ==========================\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.
",
│ │ │ │ │ "title": "--inline-snapshot=short-report"
│ │ │ │ │ },
│ │ │ │ │ {
│ │ │ │ │ "location": "pytest.html#-inline-snapshotreport",
│ │ │ │ │ - "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.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.hONnnFkFE5\nplugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\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=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.43s ==========================\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.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.cCAI6V9PUa\nplugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\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=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.51s ==========================\n
",
│ │ │ │ │ "title": "--inline-snapshot=report"
│ │ │ │ │ },
│ │ │ │ │ {
│ │ │ │ │ "location": "pytest.html#-inline-snapshotreview",
│ │ │ │ │ - "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.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.VhbSeNc7Ux\nplugins: time-machine-2.16.0, inline-snapshot-0.20.3, typeguard-4.4.2, hypothesis-6.125.2, pytest_freezer-0.4.9, subtests-0.13.1, mock-3.14.0\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\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============================== 1 passed in 0.58s ===============================\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.2, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.tNVWNv5arQ\nplugins: subtests-0.13.1, pytest_freezer-0.4.9, mock-3.14.0, hypothesis-6.125.2, time-machine-2.16.0, typeguard-4.4.2, inline-snapshot-0.20.3\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\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============================== 1 passed in 0.45s ===============================\n
",
│ │ │ │ │ "title": "--inline-snapshot=review"
│ │ │ │ │ },
│ │ │ │ │ {
│ │ │ │ │ "location": "pytest.html#-inline-snapshotdisable",
│ │ │ │ │ "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
",
│ │ │ │ │ "title": "--inline-snapshot=disable"
│ │ │ │ │ },