--- /srv/reproducible-results/rbuild-debian/r-b-build.WZi7fanX/b1/python-inline-snapshot_0.14.0-2_armhf.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.WZi7fanX/b2/python-inline-snapshot_0.14.0-2_armhf.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - 8d88074b4ad3034c0e014f8ac64b607a 655932 doc optional python-inline-snapshot-doc_0.14.0-2_all.deb │ + 39875d1fe2fcc6447c002c08a1d4febc 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 652712 2024-12-04 09:09:58.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 3024 2024-12-04 09:09:58.000000 control.tar.xz │ │ +-rw-r--r-- 0 0 0 652724 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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.tY1KiJDArh
│ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.eVLSI5KDJA
│ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │  collected 1 item
│ │ │ │  
│ │ │ │  test_something.py .                                                      [100%]
│ │ │ │  =============================== inline snapshot ================================
│ │ │ │  ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │  +----------------------------- test_something.py ------------------------------+
│ │ │ │  | @@ -2,5 +2,5 @@                                                              |
│ │ │ │ @@ -1001,23 +1001,23 @@
│ │ │ │  | +    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.45s ===============================
│ │ │ │ +============================== 1 passed in 0.46s ===============================
│ │ │ │  
│ │ │ │

--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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.iFMOTareef
│ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.3fo9Juxi6b
│ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │  collected 1 item
│ │ │ │  
│ │ │ │  test_something.py .E                                                     [100%]
│ │ │ │  
│ │ │ │  ==================================== ERRORS ====================================
│ │ │ │  _____________________ ERROR at teardown of test_something ______________________
│ │ │ │  your snapshot is missing one value.
│ │ │ │ @@ -1036,16 +1036,16 @@
│ │ │ │  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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.jm6UNdTOSW
│ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.x7nGSNtPZC
│ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │  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.54s ==========================
│ │ │ │ +========================== 1 passed, 1 error in 0.55s ==========================
│ │ │ │  
│ │ │ │

--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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ -rootdir: /tmp/tmp.m2LcQNmz3p
│ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ +rootdir: /tmp/tmp.JvKzniA4X5
│ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │  collected 1 item
│ │ │ │  
│ │ │ │  test_something.py .                                                      [100%]
│ │ │ │  =============================== inline snapshot ================================
│ │ │ │  ─────────────────────────────── Create snapshots ───────────────────────────────
│ │ │ │  +----------------------------- test_something.py ------------------------------+
│ │ │ │  | @@ -2,5 +2,5 @@                                                              |
│ │ │ │ ├── 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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ │ -rootdir: /tmp/tmp.tY1KiJDArh
│ │ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-
│ │ │ │ │ -snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ │ +rootdir: /tmp/tmp.eVLSI5KDJA
│ │ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-
│ │ │ │ │ +machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │ │  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.45s
│ │ │ │ │ +[32m============================== 1 passed in 0.46s
│ │ │ │ │  ===============================
│ │ │ │ │  ********** ----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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ │ -rootdir: /tmp/tmp.iFMOTareef
│ │ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-
│ │ │ │ │ -snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ │ +rootdir: /tmp/tmp.3fo9Juxi6b
│ │ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-
│ │ │ │ │ +machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │ │  collected 1 item
│ │ │ │ │  
│ │ │ │ │  test_something.py .E
│ │ │ │ │  [100%]
│ │ │ │ │  
│ │ │ │ │  ==================================== ERRORS
│ │ │ │ │  ====================================
│ │ │ │ │ @@ -167,17 +167,17 @@
│ │ │ │ │  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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ │ -rootdir: /tmp/tmp.jm6UNdTOSW
│ │ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-
│ │ │ │ │ -snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ │ +rootdir: /tmp/tmp.x7nGSNtPZC
│ │ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-
│ │ │ │ │ +machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │ │  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.54s ==========================
│ │ │ │ │ +0.55s ==========================
│ │ │ │ │  ********** ----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.8, pytest-8.3.3, pluggy-1.5.0
│ │ │ │ │ -rootdir: /tmp/tmp.m2LcQNmz3p
│ │ │ │ │ -plugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-
│ │ │ │ │ -snapshot-0.14.0, time-machine-2.14.1, typeguard-4.4.1
│ │ │ │ │ +rootdir: /tmp/tmp.JvKzniA4X5
│ │ │ │ │ +plugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-
│ │ │ │ │ +machine-2.14.1, inline-snapshot-0.14.0, typeguard-4.4.1
│ │ │ │ │  collected 1 item
│ │ │ │ │  
│ │ │ │ │  test_something.py .
│ │ │ │ │  [100%]
│ │ │ │ │  =============================== inline snapshot
│ │ │ │ │  ================================
│ │ │ │ │  ─────────────────────────────── Create snapshots
│ │ │ ├── ./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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.tY1KiJDArh\nplugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.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.45s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.eVLSI5KDJA\nplugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, 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.46s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.iFMOTareef\nplugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.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.50s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.3fo9Juxi6b\nplugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, 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.50s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.jm6UNdTOSW\nplugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.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.54s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.x7nGSNtPZC\nplugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, 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.55s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.m2LcQNmz3p\nplugins: hypothesis-6.122.1, subtests-0.13.1, pytest_freezer-0.4.8, inline-snapshot-0.14.0, time-machine-2.14.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.45s\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.8, pytest-8.3.3, pluggy-1.5.0\nrootdir: /tmp/tmp.JvKzniA4X5\nplugins: subtests-0.13.1, hypothesis-6.122.1, pytest_freezer-0.4.8, time-machine-2.14.1, inline-snapshot-0.14.0, 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.45s\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" │ │ │ │ │ },