--- /srv/reproducible-results/rbuild-debian/r-b-build.psPzcqC8/b1/python-inline-snapshot_0.14.0-2_arm64.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.psPzcqC8/b2/python-inline-snapshot_0.14.0-2_arm64.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - 456cb3b0b6925b90291ecdd98dfbd6a2 655936 doc optional python-inline-snapshot-doc_0.14.0-2_all.deb │ + bd0eaf288d6bf882d6e97fb344a46e0f 655940 doc optional python-inline-snapshot-doc_0.14.0-2_all.deb │ 50eecb26435368b0db18a0c41dbfb6b8 28220 python optional python3-inline-snapshot_0.14.0-2_all.deb ├── python-inline-snapshot-doc_0.14.0-2_all.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2024-12-04 09:09:58.000000 debian-binary │ │ -rw-r--r-- 0 0 0 3028 2024-12-04 09:09:58.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 652716 2024-12-04 09:09:58.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 652720 2024-12-04 09:09:58.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 │ │ │ │ @@ -967,15 +967,15 @@ │ │ │ │ def test_something(): │ │ │ │ assert 1 == snapshot() │ │ │ │ assert 2 <= snapshot(5) │ │ │ │ │ │ │ │
[1;34m> pytest test_something.py --inline-snapshot=create,report
│ │ │ │ [0m[1m============================= test session starts ==============================[0m
│ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.cJ5ZIXZuFS
│ │ │ │ +rootdir: /tmp/tmp.55JkUgF7xo
│ │ │ │ plugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py [32m.[0m[32m [100%][0m
│ │ │ │ =============================== inline snapshot ================================
│ │ │ │ ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │ +----------------------------- test_something.py ------------------------------+
│ │ │ │ @@ -1001,22 +1001,22 @@
│ │ │ │ | + 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
│ │ │ │
│ │ │ │
│ │ │ │ -[32m============================== [32m[1m1 passed[0m[32m in 0.13s[0m[32m ===============================[0m
│ │ │ │ +[32m============================== [32m[1m1 passed[0m[32m in 0.25s[0m[32m ===============================[0m
│ │ │ │
give a short report over which changes can be made to the snapshots
│ │ │ │[1;34m> pytest test_something.py --inline-snapshot=short-report
│ │ │ │ [0m[1m============================= test session starts ==============================[0m
│ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.5nmmmJlglG
│ │ │ │ +rootdir: /tmp/tmp.wuzw7eb2yh
│ │ │ │ plugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py [32m.[0m[31mE[0m[31m [100%][0m
│ │ │ │
│ │ │ │ ==================================== ERRORS ====================================
│ │ │ │ [31m[1m_____________________ ERROR at teardown of test_something ______________________[0m
│ │ │ │ @@ -1024,27 +1024,27 @@
│ │ │ │ =============================== 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
│ │ │ │ [36m[1m=========================== short test summary info ============================[0m
│ │ │ │ [31mERROR[0m test_something.py::[1mtest_something[0m - Failed: your snapshot is missing one value.
│ │ │ │ -[31m========================== [32m1 passed[0m, [31m[1m1 error[0m[31m in 0.14s[0m[31m ==========================[0m
│ │ │ │ +[31m========================== [32m1 passed[0m, [31m[1m1 error[0m[31m in 0.31s[0m[31m ==========================[0m
│ │ │ │
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
│ │ │ │[1;34m> pytest test_something.py --inline-snapshot=report
│ │ │ │ [0m[1m============================= test session starts ==============================[0m
│ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.l1LR1EF9gv
│ │ │ │ +rootdir: /tmp/tmp.cpwbZvuY0c
│ │ │ │ plugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py [32m.[0m[31mE[0m[31m [100%][0m
│ │ │ │
│ │ │ │ ==================================== ERRORS ====================================
│ │ │ │ [31m[1m_____________________ ERROR at teardown of test_something ______________________[0m
│ │ │ │ @@ -1077,22 +1077,22 @@
│ │ │ │ +------------------------------------------------------------------------------+
│ │ │ │ These changes are not applied.
│ │ │ │ Use --inline-snapshot=trim to apply them, or use the interactive mode with
│ │ │ │ --inline-snapshot=review
│ │ │ │
│ │ │ │ [36m[1m=========================== short test summary info ============================[0m
│ │ │ │ [31mERROR[0m test_something.py::[1mtest_something[0m - Failed: your snapshot is missing one value.
│ │ │ │ -[31m========================== [32m1 passed[0m, [31m[1m1 error[0m[31m in 0.15s[0m[31m ==========================[0m
│ │ │ │ +[31m========================== [32m1 passed[0m, [31m[1m1 error[0m[31m in 0.18s[0m[31m ==========================[0m
│ │ │ │
Shows a diff report for each category and ask if you want to apply the changes
│ │ │ │[1;34m> pytest test_something.py --inline-snapshot=review
│ │ │ │ [0m[1m============================= test session starts ==============================[0m
│ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.zV2aP2k2Hh
│ │ │ │ +rootdir: /tmp/tmp.MDQbIXE4hq
│ │ │ │ plugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ collected 1 item
│ │ │ │
│ │ │ │ test_something.py [32m.[0m[32m [100%][0m
│ │ │ │ =============================== inline snapshot ================================
│ │ │ │ ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │ +----------------------------- test_something.py ------------------------------+
│ │ │ │ @@ -1114,15 +1114,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):
│ │ │ │
│ │ │ │ -[32m============================== [32m[1m1 passed[0m[32m in 0.14s[0m[32m ===============================[0m
│ │ │ │ +[32m============================== [32m[1m1 passed[0m[32m in 0.15s[0m[32m ===============================[0m
│ │ │ │
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
\\x1b[1;34m> pytest '
│ │ │ │ │┄ 'test_something.py '
│ │ │ │ │┄ '--inline-snapshot=create,report\\n\\x1b[0m\\x1b[1m============================= test '
│ │ │ │ │┄ […]
│ │ │ │ │ @@ -647,30 +647,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
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.cJ5ZIXZuFS\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\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\u001b[32m============================== \u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 0.13s\u001b[0m\u001b[32m ===============================\u001b[0m\n
",
│ │ │ │ │ + "text": "Approve the changes of the given category. These flags can be combined with report and review.
test_something.pyfrom inline_snapshot import snapshot\n\n\ndef test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.55JkUgF7xo\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\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\u001b[32m============================== \u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 0.25s\u001b[0m\u001b[32m ===============================\u001b[0m\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
\u001b[1;34m> pytest test_something.py --inline-snapshot=short-report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.5nmmmJlglG\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m [100%]\u001b[0m\n\n==================================== ERRORS ====================================\n\u001b[31m\u001b[1m_____________________ ERROR at teardown of test_something ______________________\u001b[0m\n\u001b[0myour snapshot \u001b[95mis\u001b[39;49;00m missing one value.\u001b[90m\u001b[39;49;00m\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\u001b[36m\u001b[1m=========================== short test summary info ============================\u001b[0m\n\u001b[31mERROR\u001b[0m test_something.py::\u001b[1mtest_something\u001b[0m - Failed: your snapshot is missing one value.\n\u001b[31m========================== \u001b[32m1 passed\u001b[0m, \u001b[31m\u001b[1m1 error\u001b[0m\u001b[31m in 0.14s\u001b[0m\u001b[31m ==========================\u001b[0m\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
\u001b[1;34m> pytest test_something.py --inline-snapshot=short-report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.wuzw7eb2yh\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m [100%]\u001b[0m\n\n==================================== ERRORS ====================================\n\u001b[31m\u001b[1m_____________________ ERROR at teardown of test_something ______________________\u001b[0m\n\u001b[0myour snapshot \u001b[95mis\u001b[39;49;00m missing one value.\u001b[90m\u001b[39;49;00m\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\u001b[36m\u001b[1m=========================== short test summary info ============================\u001b[0m\n\u001b[31mERROR\u001b[0m test_something.py::\u001b[1mtest_something\u001b[0m - Failed: your snapshot is missing one value.\n\u001b[31m========================== \u001b[32m1 passed\u001b[0m, \u001b[31m\u001b[1m1 error\u001b[0m\u001b[31m in 0.31s\u001b[0m\u001b[31m ==========================\u001b[0m\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
\u001b[1;34m> pytest test_something.py --inline-snapshot=report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.l1LR1EF9gv\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m [100%]\u001b[0m\n\n==================================== ERRORS ====================================\n\u001b[31m\u001b[1m_____________________ ERROR at teardown of test_something ______________________\u001b[0m\n\u001b[0myour snapshot \u001b[95mis\u001b[39;49;00m missing one value.\u001b[90m\u001b[39;49;00m\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\u001b[36m\u001b[1m=========================== short test summary info ============================\u001b[0m\n\u001b[31mERROR\u001b[0m test_something.py::\u001b[1mtest_something\u001b[0m - Failed: your snapshot is missing one value.\n\u001b[31m========================== \u001b[32m1 passed\u001b[0m, \u001b[31m\u001b[1m1 error\u001b[0m\u001b[31m in 0.15s\u001b[0m\u001b[31m ==========================\u001b[0m\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[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.cpwbZvuY0c\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m [100%]\u001b[0m\n\n==================================== ERRORS ====================================\n\u001b[31m\u001b[1m_____________________ ERROR at teardown of test_something ______________________\u001b[0m\n\u001b[0myour snapshot \u001b[95mis\u001b[39;49;00m missing one value.\u001b[90m\u001b[39;49;00m\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\u001b[36m\u001b[1m=========================== short test summary info ============================\u001b[0m\n\u001b[31mERROR\u001b[0m test_something.py::\u001b[1mtest_something\u001b[0m - Failed: your snapshot is missing one value.\n\u001b[31m========================== \u001b[32m1 passed\u001b[0m, \u001b[31m\u001b[1m1 error\u001b[0m\u001b[31m in 0.18s\u001b[0m\u001b[31m ==========================\u001b[0m\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
\u001b[1;34m> pytest test_something.py --inline-snapshot=review\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.zV2aP2k2Hh\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\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\u001b[32m============================== \u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 0.14s\u001b[0m\u001b[32m ===============================\u001b[0m\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[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.MDQbIXE4hq\nplugins: time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, hypothesis-6.122.1, typeguard-4.4.1\ncollected 1 item\n\ntest_something.py \u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\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\u001b[32m============================== \u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 0.15s\u001b[0m\u001b[32m ===============================\u001b[0m\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"
│ │ │ │ │ },