--- /srv/reproducible-results/rbuild-debian/r-b-build.ayDBzDP3/b1/python-inline-snapshot_0.14.0-2_i386.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.ayDBzDP3/b2/python-inline-snapshot_0.14.0-2_i386.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - 7913e21839bef8c8d01bbc995b820e57 655936 doc optional python-inline-snapshot-doc_0.14.0-2_all.deb │ + 6d9770101db16b54064b30c240df977f 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 3024 2024-12-04 09:09:58.000000 control.tar.xz │ │ +-rw-r--r-- 0 0 0 3028 2024-12-04 09:09:58.000000 control.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,16 +967,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.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.BT68NEjeRY
│ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.MJjnsb33hH
│ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0
│ │ │ │  collected 1 item
│ │ │ │  
│ │ │ │  test_something.py .                                                      [100%]
│ │ │ │  =============================== inline snapshot ================================
│ │ │ │  ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │  +----------------------------- test_something.py ------------------------------+
│ │ │ │  | @@ -2,5 +2,5 @@                                                              |
│ │ │ │ @@ -1001,51 +1001,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.15s ===============================
│ │ │ │ +============================== 1 passed in 0.25s ===============================
│ │ │ │  
│ │ │ │

--inline-snapshot=short-report

│ │ │ │

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.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.w0yUjBG7q9
│ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.5QGpQTwuz5
│ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0
│ │ │ │  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.16s ==========================
│ │ │ │ +========================== 1 passed, 1 error in 0.34s ==========================
│ │ │ │  
│ │ │ │
│ │ │ │

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.

│ │ │ │
│ │ │ │

--inline-snapshot=report

│ │ │ │

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.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.Pt2ZD8C3Bg
│ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.wCNi3qoly4
│ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0
│ │ │ │  collected 1 item
│ │ │ │  
│ │ │ │  test_something.py .E                                                     [100%]
│ │ │ │  
│ │ │ │  ==================================== ERRORS ====================================
│ │ │ │  _____________________ ERROR at teardown of test_something ______________________
│ │ │ │  your snapshot is missing one value.
│ │ │ │ @@ -1077,23 +1077,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.17s ==========================
│ │ │ │ +========================== 1 passed, 1 error in 0.31s ==========================
│ │ │ │  
│ │ │ │

--inline-snapshot=review

│ │ │ │

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.12.7, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.JTkeDiJj4d
│ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.YnlexNOeKP
│ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0
│ │ │ │  collected 1 item
│ │ │ │  
│ │ │ │  test_something.py .                                                      [100%]
│ │ │ │  =============================== inline snapshot ================================
│ │ │ │  ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │  +----------------------------- test_something.py ------------------------------+
│ │ │ │  | @@ -2,5 +2,5 @@                                                              |
│ │ │ │ @@ -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): 
│ │ │ │  
│ │ │ │ -============================== 1 passed in 0.15s ===============================
│ │ │ │ +============================== 1 passed in 0.33s ===============================
│ │ │ │  
│ │ │ │

--inline-snapshot=disable

│ │ │ │

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

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -66,17 +66,17 @@ │ │ │ │ │ def test_something(): │ │ │ │ │ assert 1 == snapshot() │ │ │ │ │ assert 2 <= snapshot(5) │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=create,report │ │ │ │ │ [0m============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.BT68NEjeRY │ │ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, │ │ │ │ │ -pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1 │ │ │ │ │ +rootdir: /tmp/tmp.MJjnsb33hH │ │ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, │ │ │ │ │ +pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py . │ │ │ │ │ [100%] │ │ │ │ │ =============================== inline snapshot │ │ │ │ │ ================================ │ │ │ │ │ ─────────────────────────────── Create snapshots │ │ │ │ │ @@ -124,25 +124,25 @@ │ │ │ │ │ +------------------------------------------------------------------------------ │ │ │ │ │ + │ │ │ │ │ These changes are not applied. │ │ │ │ │ Use --inline-snapshot=trim to apply them, or use the interactive mode with │ │ │ │ │ --inline-snapshot=review │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ -[32m============================== 1 passed in 0.15s │ │ │ │ │ +[32m============================== 1 passed in 0.25s │ │ │ │ │ =============================== │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==sshhoorrtt--rreeppoorrtt_?¶ ********** │ │ │ │ │ give a short report over which changes can be made to the snapshots │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=short-report │ │ │ │ │ [0m============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.w0yUjBG7q9 │ │ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, │ │ │ │ │ -pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1 │ │ │ │ │ +rootdir: /tmp/tmp.5QGpQTwuz5 │ │ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, │ │ │ │ │ +pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py .E │ │ │ │ │ [100%] │ │ │ │ │ │ │ │ │ │ ==================================== ERRORS │ │ │ │ │ ==================================== │ │ │ │ │ @@ -156,28 +156,28 @@ │ │ │ │ │ │ │ │ │ │ You can also use --inline-snapshot=review to approve the changes interactively │ │ │ │ │ [36m=========================== short test summary info │ │ │ │ │ ============================ │ │ │ │ │ [31mERROR test_something.py::test_something - Failed: your snapshot │ │ │ │ │ is missing one value. │ │ │ │ │ [31m========================== 1 passed, 1 error in │ │ │ │ │ -0.16s ========================== │ │ │ │ │ +0.34s ========================== │ │ │ │ │ Info │ │ │ │ │ short-report exists mainly to show that snapshots have changed with enabled │ │ │ │ │ pytest assert-rewriting. This option will be replaced with rreeppoorrtt when this │ │ │ │ │ restriction is lifted. │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==rreeppoorrtt_?¶ ********** │ │ │ │ │ Shows a diff report over which changes can be made to the snapshots │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=report │ │ │ │ │ [0m============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.Pt2ZD8C3Bg │ │ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, │ │ │ │ │ -pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1 │ │ │ │ │ +rootdir: /tmp/tmp.wCNi3qoly4 │ │ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, │ │ │ │ │ +pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py .E │ │ │ │ │ [100%] │ │ │ │ │ │ │ │ │ │ ==================================== ERRORS │ │ │ │ │ ==================================== │ │ │ │ │ @@ -237,24 +237,24 @@ │ │ │ │ │ --inline-snapshot=review │ │ │ │ │ │ │ │ │ │ [36m=========================== short test summary info │ │ │ │ │ ============================ │ │ │ │ │ [31mERROR test_something.py::test_something - Failed: your snapshot │ │ │ │ │ is missing one value. │ │ │ │ │ [31m========================== 1 passed, 1 error in │ │ │ │ │ -0.17s ========================== │ │ │ │ │ +0.31s ========================== │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==rreevviieeww_?¶ ********** │ │ │ │ │ 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============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.JTkeDiJj4d │ │ │ │ │ -plugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, │ │ │ │ │ -pytest_freezer-0.4.8, hypothesis-6.122.1, typeguard-4.4.1 │ │ │ │ │ +rootdir: /tmp/tmp.YnlexNOeKP │ │ │ │ │ +plugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, │ │ │ │ │ +pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py . │ │ │ │ │ [100%] │ │ │ │ │ =============================== inline snapshot │ │ │ │ │ ================================ │ │ │ │ │ ─────────────────────────────── Create snapshots │ │ │ │ │ @@ -298,15 +298,15 @@ │ │ │ │ │ | │ │ │ │ │ | + assert 2 <= snapshot(2) │ │ │ │ │ | │ │ │ │ │ +------------------------------------------------------------------------------ │ │ │ │ │ + │ │ │ │ │ do you want to trim these snapshots? [y/n] (n): │ │ │ │ │ │ │ │ │ │ -[32m============================== 1 passed in 0.15s │ │ │ │ │ +[32m============================== 1 passed in 0.33s │ │ │ │ │ =============================== │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==ddiissaabbllee_?¶ ********** │ │ │ │ │ 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 │ │ │ ├── ./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json │ │ │ │ ├── Pretty-printed │ │ │ │ │┄ Similarity: 0.9988425925925927% │ │ │ │ │┄ Differences: {"'docs'": "{128: {'text': '

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

test_something.py
from inline_snapshot '
│ │ │ │ │┄            'import snapshot\\n\\n\\ndef test_something():\\n    assert 1 == snapshot()\\n    '
│ │ │ │ │┄            'assert 2 <= snapshot(5)\\n
\\x1b[1;34m> pytest '
│ │ │ │ │┄            'test_something.py '
│ │ │ │ │┄            '--inline-snapshot=create,report\\n\\x1b[0m\\x1b[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.py
from inline_snapshot import snapshot\n\n\ndef test_something():\n    assert 1 == snapshot()\n    assert 2 <= snapshot(5)\n
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.BT68NEjeRY\nplugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, 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.15s\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.py
from inline_snapshot import snapshot\n\n\ndef test_something():\n    assert 1 == snapshot()\n    assert 2 <= snapshot(5)\n
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n\u001b[0m\u001b[1m============================= test session starts ==============================\u001b[0m\nplatform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.MJjnsb33hH\nplugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0\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.w0yUjBG7q9\nplugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, 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.16s\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.5QGpQTwuz5\nplugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0\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.34s\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.Pt2ZD8C3Bg\nplugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, 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.17s\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.wCNi3qoly4\nplugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0\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.31s\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.JTkeDiJj4d\nplugins: inline-snapshot-0.14.0, time-machine-2.14.1, subtests-0.13.1, pytest_freezer-0.4.8, 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
", │ │ │ │ │ + "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.YnlexNOeKP\nplugins: time-machine-2.14.1, hypothesis-6.122.1, typeguard-4.4.1, pytest_freezer-0.4.8, subtests-0.13.1, inline-snapshot-0.14.0\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.33s\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" │ │ │ │ │ },