--- /srv/reproducible-results/rbuild-debian/r-b-build.JjMokdWF/b1/python-inline-snapshot_0.19.3-1_i386.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.JjMokdWF/b2/python-inline-snapshot_0.19.3-1_i386.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - 356ea1ca3edaa4d502b0b3bdacf914c9 535656 doc optional python-inline-snapshot-doc_0.19.3-1_all.deb │ + 8a01102efd101336aea9e51b7c008d52 535664 doc optional python-inline-snapshot-doc_0.19.3-1_all.deb │ 3ddbc791df9158261eb361c3e0c89846 36476 python optional python3-inline-snapshot_0.19.3-1_all.deb ├── python-inline-snapshot-doc_0.19.3-1_all.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2025-01-16 17:36:51.000000 debian-binary │ │ -rw-r--r-- 0 0 0 3020 2025-01-16 17:36:51.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 532444 2025-01-16 17:36:51.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 532452 2025-01-16 17:36:51.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 │ │ │ │ @@ -969,16 +969,16 @@ │ │ │ │ <a id="__codelineno-1-4" name="__codelineno-1-4" href="#__codelineno-1-4"></a><span class="k">def</span> <span class="nf">test_something</span><span class="p">():</span> │ │ │ │ <a id="__codelineno-1-5" name="__codelineno-1-5" href="#__codelineno-1-5"></a> <span class="k">assert</span> <span class="mi">1</span> <span class="o">==</span> <span class="n">snapshot</span><span class="p">()</span> │ │ │ │ <a id="__codelineno-1-6" name="__codelineno-1-6" href="#__codelineno-1-6"></a> <span class="k">assert</span> <span class="mi">2</span> <span class="o"><=</span> <span class="n">snapshot</span><span class="p">(</span><span class="mi">5</span><span class="p">)</span> │ │ │ │ </code></pre></div> │ │ │ │ <div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class=" -Color -Color-Bold -Color-Bold-Blue">> pytest test_something.py --inline-snapshot=create,report</span> │ │ │ │ <a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class=" -Color -Color-Bold">============================= test session starts ==============================</span> │ │ │ │ <a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ -<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.wn9tH2jqs3 │ │ │ │ -<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ +<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.X10m2iq6zM │ │ │ │ +<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ <a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>collected 1 item │ │ │ │ <a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a> │ │ │ │ <a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>test_something.py <span class=" -Color -Color-Green">. [100%]</span> │ │ │ │ <a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>=============================== inline snapshot ================================ │ │ │ │ <a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>─────────────────────────────── Create snapshots ─────────────────────────────── │ │ │ │ <a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>+----------------------------- test_something.py ------------------------------+ │ │ │ │ <a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>| @@ -2,5 +2,5 @@ | │ │ │ │ @@ -1003,51 +1003,51 @@ │ │ │ │ <a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>| + assert 2 <= snapshot(2) | │ │ │ │ <a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>+------------------------------------------------------------------------------+ │ │ │ │ <a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a>These changes are not applied. │ │ │ │ <a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a>Use --inline-snapshot=trim to apply them, or use the interactive mode with │ │ │ │ <a id="__codelineno-0-35" name="__codelineno-0-35" href="#__codelineno-0-35"></a>--inline-snapshot=review │ │ │ │ <a id="__codelineno-0-36" name="__codelineno-0-36" href="#__codelineno-0-36"></a> │ │ │ │ <a id="__codelineno-0-37" name="__codelineno-0-37" href="#__codelineno-0-37"></a> │ │ │ │ -<a id="__codelineno-0-38" name="__codelineno-0-38" href="#__codelineno-0-38"></a><span class=" -Color -Color-Green">============================== </span><span class=" -Color -Color-Bold -Color-Bold-Green">1 passed</span><span class=" -Color -Color-Green"> in 0.22s ===============================</span> │ │ │ │ +<a id="__codelineno-0-38" name="__codelineno-0-38" href="#__codelineno-0-38"></a><span class=" -Color -Color-Green">============================== </span><span class=" -Color -Color-Bold -Color-Bold-Green">1 passed</span><span class=" -Color -Color-Green"> in 0.78s ===============================</span> │ │ │ │ </code></pre></div> │ │ │ │ <h2 id="-inline-snapshotshort-report">--inline-snapshot=short-report<a class="headerlink" href="#-inline-snapshotshort-report" title="Permanent link">¶</a></h2> │ │ │ │ <p>give a short report over which changes can be made to the snapshots</p> │ │ │ │ <div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class=" -Color -Color-Bold -Color-Bold-Blue">> pytest test_something.py --inline-snapshot=short-report</span> │ │ │ │ <a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class=" -Color -Color-Bold">============================= test session starts ==============================</span> │ │ │ │ <a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ -<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.goly65pdMx │ │ │ │ -<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ +<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.3mA7RxdQwP │ │ │ │ +<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ <a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>collected 1 item │ │ │ │ <a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a> │ │ │ │ <a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>test_something.py <span class=" -Color -Color-Green">.</span><span class=" -Color -Color-Red">E [100%]</span> │ │ │ │ <a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a> │ │ │ │ <a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>==================================== ERRORS ==================================== │ │ │ │ <a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a><span class=" -Color -Color-Bold -Color-Bold-Red">_____________________ ERROR at teardown of test_something ______________________</span> │ │ │ │ <a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>your snapshot is missing one value. │ │ │ │ <a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a>=============================== inline snapshot ================================ │ │ │ │ <a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a>Info: one snapshot can be trimmed (--inline-snapshot=trim) │ │ │ │ <a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a>Error: one snapshot is missing a value (--inline-snapshot=create) │ │ │ │ <a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a> │ │ │ │ <a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a>You can also use --inline-snapshot=review to approve the changes interactively │ │ │ │ <a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a><span class=" -Color -Color-Bold -Color-Bold-Cyan">=========================== short test summary info ============================</span> │ │ │ │ <a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a><span class=" -Color -Color-Red">ERROR</span> test_something.py::<span class=" -Color -Color-Bold">test_something</span> - Failed: your snapshot is missing one value. │ │ │ │ -<a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a><span class=" -Color -Color-Red">========================== </span><span class=" -Color -Color-Green">1 passed</span>, <span class=" -Color -Color-Bold -Color-Bold-Red">1 error</span><span class=" -Color -Color-Red"> in 0.20s ==========================</span> │ │ │ │ +<a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a><span class=" -Color -Color-Red">========================== </span><span class=" -Color -Color-Green">1 passed</span>, <span class=" -Color -Color-Bold -Color-Bold-Red">1 error</span><span class=" -Color -Color-Red"> in 0.47s ==========================</span> │ │ │ │ </code></pre></div> │ │ │ │ <div class="admonition info"> │ │ │ │ <p class="admonition-title">Info</p> │ │ │ │ <p>short-report exists mainly to show that snapshots have changed with enabled pytest assert-rewriting. │ │ │ │ This option will be replaced with <em>report</em> when this restriction is lifted.</p> │ │ │ │ </div> │ │ │ │ <h2 id="-inline-snapshotreport">--inline-snapshot=report<a class="headerlink" href="#-inline-snapshotreport" title="Permanent link">¶</a></h2> │ │ │ │ <p>Shows a diff report over which changes can be made to the snapshots</p> │ │ │ │ <div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class=" -Color -Color-Bold -Color-Bold-Blue">> pytest test_something.py --inline-snapshot=report</span> │ │ │ │ <a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class=" -Color -Color-Bold">============================= test session starts ==============================</span> │ │ │ │ <a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ -<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.Gln36p4x3J │ │ │ │ -<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ +<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.vMzO11EVRF │ │ │ │ +<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ <a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>collected 1 item │ │ │ │ <a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a> │ │ │ │ <a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>test_something.py <span class=" -Color -Color-Green">.</span><span class=" -Color -Color-Red">E [100%]</span> │ │ │ │ <a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a> │ │ │ │ <a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>==================================== ERRORS ==================================== │ │ │ │ <a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a><span class=" -Color -Color-Bold -Color-Bold-Red">_____________________ ERROR at teardown of test_something ______________________</span> │ │ │ │ <a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>your snapshot is missing one value. │ │ │ │ @@ -1079,23 +1079,23 @@ │ │ │ │ <a id="__codelineno-0-38" name="__codelineno-0-38" href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+ │ │ │ │ <a id="__codelineno-0-39" name="__codelineno-0-39" href="#__codelineno-0-39"></a>These changes are not applied. │ │ │ │ <a id="__codelineno-0-40" name="__codelineno-0-40" href="#__codelineno-0-40"></a>Use --inline-snapshot=trim to apply them, or use the interactive mode with │ │ │ │ <a id="__codelineno-0-41" name="__codelineno-0-41" href="#__codelineno-0-41"></a>--inline-snapshot=review │ │ │ │ <a id="__codelineno-0-42" name="__codelineno-0-42" href="#__codelineno-0-42"></a> │ │ │ │ <a id="__codelineno-0-43" name="__codelineno-0-43" href="#__codelineno-0-43"></a><span class=" -Color -Color-Bold -Color-Bold-Cyan">=========================== short test summary info ============================</span> │ │ │ │ <a id="__codelineno-0-44" name="__codelineno-0-44" href="#__codelineno-0-44"></a><span class=" -Color -Color-Red">ERROR</span> test_something.py::<span class=" -Color -Color-Bold">test_something</span> - Failed: your snapshot is missing one value. │ │ │ │ -<a id="__codelineno-0-45" name="__codelineno-0-45" href="#__codelineno-0-45"></a><span class=" -Color -Color-Red">========================== </span><span class=" -Color -Color-Green">1 passed</span>, <span class=" -Color -Color-Bold -Color-Bold-Red">1 error</span><span class=" -Color -Color-Red"> in 0.20s ==========================</span> │ │ │ │ +<a id="__codelineno-0-45" name="__codelineno-0-45" href="#__codelineno-0-45"></a><span class=" -Color -Color-Red">========================== </span><span class=" -Color -Color-Green">1 passed</span>, <span class=" -Color -Color-Bold -Color-Bold-Red">1 error</span><span class=" -Color -Color-Red"> in 0.47s ==========================</span> │ │ │ │ </code></pre></div> │ │ │ │ <h2 id="-inline-snapshotreview">--inline-snapshot=review<a class="headerlink" href="#-inline-snapshotreview" title="Permanent link">¶</a></h2> │ │ │ │ <p>Shows a diff report for each category and ask if you want to apply the changes</p> │ │ │ │ <div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class=" -Color -Color-Bold -Color-Bold-Blue">> pytest test_something.py --inline-snapshot=review</span> │ │ │ │ <a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class=" -Color -Color-Bold">============================= test session starts ==============================</span> │ │ │ │ <a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ -<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.7PV5fQ7M4O │ │ │ │ -<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ +<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>rootdir: /tmp/tmp.Rh9Ctv4BLJ │ │ │ │ +<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ <a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>collected 1 item │ │ │ │ <a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a> │ │ │ │ <a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>test_something.py <span class=" -Color -Color-Green">. [100%]</span> │ │ │ │ <a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>=============================== inline snapshot ================================ │ │ │ │ <a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>─────────────────────────────── Create snapshots ─────────────────────────────── │ │ │ │ <a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>+----------------------------- test_something.py ------------------------------+ │ │ │ │ <a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>| @@ -2,5 +2,5 @@ | │ │ │ │ @@ -1116,15 +1116,15 @@ │ │ │ │ <a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a>| def test_something(): | │ │ │ │ <a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a>| assert 1 == snapshot(1) | │ │ │ │ <a id="__codelineno-0-29" name="__codelineno-0-29" href="#__codelineno-0-29"></a>| - assert 2 <= snapshot(5) | │ │ │ │ <a id="__codelineno-0-30" name="__codelineno-0-30" href="#__codelineno-0-30"></a>| + assert 2 <= snapshot(2) | │ │ │ │ <a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>+------------------------------------------------------------------------------+ │ │ │ │ <a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>do you want to trim these snapshots? [y/n] (n): │ │ │ │ <a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a> │ │ │ │ -<a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a><span class=" -Color -Color-Green">============================== </span><span class=" -Color -Color-Bold -Color-Bold-Green">1 passed</span><span class=" -Color -Color-Green"> in 0.21s ===============================</span> │ │ │ │ +<a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a><span class=" -Color -Color-Green">============================== </span><span class=" -Color -Color-Bold -Color-Bold-Green">1 passed</span><span class=" -Color -Color-Green"> in 0.51s ===============================</span> │ │ │ │ </code></pre></div> │ │ │ │ <h2 id="-inline-snapshotdisable">--inline-snapshot=disable<a class="headerlink" href="#-inline-snapshotdisable" title="Permanent link">¶</a></h2> │ │ │ │ <p>Disables all the snapshot logic. <code>snapshot(x)</code> will just return <code>x</code>. │ │ │ │ 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.</p> │ │ │ │ <div class="admonition info"> │ │ │ │ <p class="admonition-title">deprecation</p> │ │ │ │ <p>This option was previously called <code>--inline-snapshot-disable</code></p> │ │ │ │ ├── html2text {} │ │ │ │ │ @@ -66,17 +66,17 @@ │ │ │ │ │ def test_something(): │ │ │ │ │ assert 1 == snapshot() │ │ │ │ │ assert 2 <= snapshot(5) │ │ │ │ │ > pytest test_something.py --inline-snapshot=create,report │ │ │ │ │ ============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.wn9tH2jqs3 │ │ │ │ │ -plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline- │ │ │ │ │ -snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ │ +rootdir: /tmp/tmp.X10m2iq6zM │ │ │ │ │ +plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests- │ │ │ │ │ +0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py . [100%] │ │ │ │ │ =============================== inline snapshot │ │ │ │ │ ================================ │ │ │ │ │ ─────────────────────────────── Create snapshots │ │ │ │ │ ─────────────────────────────── │ │ │ │ │ @@ -123,25 +123,25 @@ │ │ │ │ │ +------------------------------------------------------------------------------ │ │ │ │ │ + │ │ │ │ │ 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.22s │ │ │ │ │ +============================== 1 passed in 0.78s │ │ │ │ │ =============================== │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==sshhoorrtt--rreeppoorrtt_?¶ ********** │ │ │ │ │ give a short report over which changes can be made to the snapshots │ │ │ │ │ > pytest test_something.py --inline-snapshot=short-report │ │ │ │ │ ============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.goly65pdMx │ │ │ │ │ -plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline- │ │ │ │ │ -snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ │ +rootdir: /tmp/tmp.3mA7RxdQwP │ │ │ │ │ +plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests- │ │ │ │ │ +0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py .E [100%] │ │ │ │ │ │ │ │ │ │ ==================================== ERRORS │ │ │ │ │ ==================================== │ │ │ │ │ _____________________ ERROR at teardown of test_something │ │ │ │ │ @@ -153,29 +153,29 @@ │ │ │ │ │ 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.20s │ │ │ │ │ +========================== 1 passed, 1 error in 0.47s │ │ │ │ │ ========================== │ │ │ │ │ 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 │ │ │ │ │ > pytest test_something.py --inline-snapshot=report │ │ │ │ │ ============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.Gln36p4x3J │ │ │ │ │ -plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline- │ │ │ │ │ -snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ │ +rootdir: /tmp/tmp.vMzO11EVRF │ │ │ │ │ +plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests- │ │ │ │ │ +0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py .E [100%] │ │ │ │ │ │ │ │ │ │ ==================================== ERRORS │ │ │ │ │ ==================================== │ │ │ │ │ _____________________ ERROR at teardown of test_something │ │ │ │ │ @@ -233,25 +233,25 @@ │ │ │ │ │ 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.20s │ │ │ │ │ +========================== 1 passed, 1 error in 0.47s │ │ │ │ │ ========================== │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==rreevviieeww_?¶ ********** │ │ │ │ │ Shows a diff report for each category and ask if you want to apply the changes │ │ │ │ │ > pytest test_something.py --inline-snapshot=review │ │ │ │ │ ============================= test session starts │ │ │ │ │ ============================== │ │ │ │ │ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 │ │ │ │ │ -rootdir: /tmp/tmp.7PV5fQ7M4O │ │ │ │ │ -plugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline- │ │ │ │ │ -snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0 │ │ │ │ │ +rootdir: /tmp/tmp.Rh9Ctv4BLJ │ │ │ │ │ +plugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests- │ │ │ │ │ +0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0 │ │ │ │ │ collected 1 item │ │ │ │ │ │ │ │ │ │ test_something.py . [100%] │ │ │ │ │ =============================== inline snapshot │ │ │ │ │ ================================ │ │ │ │ │ ─────────────────────────────── Create snapshots │ │ │ │ │ ─────────────────────────────── │ │ │ │ │ @@ -294,15 +294,15 @@ │ │ │ │ │ | │ │ │ │ │ | + assert 2 <= snapshot(2) │ │ │ │ │ | │ │ │ │ │ +------------------------------------------------------------------------------ │ │ │ │ │ + │ │ │ │ │ do you want to trim these snapshots? [y/n] (n): │ │ │ │ │ │ │ │ │ │ -============================== 1 passed in 0.21s │ │ │ │ │ +============================== 1 passed in 0.51s │ │ │ │ │ =============================== │ │ │ │ │ ********** ----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.9991039426523298% │ │ │ │ │┄ Differences: {"'docs'": "{170: {'text': '<p>Approve the changes of the given category. These flags can be " │ │ │ │ │┄ 'combined with report and review.</p> test_something.py<pre><code>from inline_snapshot ' │ │ │ │ │┄ 'import snapshot\\n\\n\\ndef test_something():\\n assert 1 == snapshot()\\n ' │ │ │ │ │┄ 'assert 2 <= snapshot(5)\\n</code></pre> <pre><code>> pytest test_something.py ' │ │ │ │ │┄ '--inline-snapshot=create,report\\n============================= test session starts ' │ │ │ │ │┄ '============== […] │ │ │ │ │ @@ -857,30 +857,30 @@ │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html", │ │ │ │ │ "text": "<p>inline-snapshot provides one pytest option with different flags (create, fix, trim, update, short-report, report, disable).</p> <p>Snapshot comparisons return always <code>True</code> 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:</p> <pre><code>from inline_snapshot import snapshot\n\n\ndef test_something():\n assert 1 == snapshot(5)\n assert 2 <= snapshot(5)\n</code></pre> <p>Note</p> <p>Every flag with the exception of disable and short-report disables the pytest assert-rewriting.</p>", │ │ │ │ │ "title": "pytest integration" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotcreatefixtrimupdate", │ │ │ │ │ - "text": "<p>Approve the changes of the given category. These flags can be combined with report and review.</p> test_something.py<pre><code>from inline_snapshot import snapshot\n\n\ndef test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n</code></pre> <pre><code>> pytest test_something.py --inline-snapshot=create,report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.wn9tH2jqs3\nplugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -2,5 +2,5 @@ |\n| |\n| |\n| |\n| def test_something(): |\n| - assert 1 == snapshot() |\n| + assert 1 == snapshot(1) |\n| assert 2 <= snapshot(5) |\n+------------------------------------------------------------------------------+\nThese changes will be applied, because you used --inline-snapshot=create\n\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Trim snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -3,4 +3,4 @@ |\n| |\n| |\n| def test_something(): |\n| assert 1 == snapshot(1) |\n| - assert 2 <= snapshot(5) |\n| + assert 2 <= snapshot(2) |\n+------------------------------------------------------------------------------+\nThese changes are not applied.\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \n--inline-snapshot=review\n\n\n============================== 1 passed in 0.22s ===============================\n</code></pre>", │ │ │ │ │ + "text": "<p>Approve the changes of the given category. These flags can be combined with report and review.</p> test_something.py<pre><code>from inline_snapshot import snapshot\n\n\ndef test_something():\n assert 1 == snapshot()\n assert 2 <= snapshot(5)\n</code></pre> <pre><code>> pytest test_something.py --inline-snapshot=create,report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.X10m2iq6zM\nplugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -2,5 +2,5 @@ |\n| |\n| |\n| |\n| def test_something(): |\n| - assert 1 == snapshot() |\n| + assert 1 == snapshot(1) |\n| assert 2 <= snapshot(5) |\n+------------------------------------------------------------------------------+\nThese changes will be applied, because you used --inline-snapshot=create\n\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Trim snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -3,4 +3,4 @@ |\n| |\n| |\n| def test_something(): |\n| assert 1 == snapshot(1) |\n| - assert 2 <= snapshot(5) |\n| + assert 2 <= snapshot(2) |\n+------------------------------------------------------------------------------+\nThese changes are not applied.\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \n--inline-snapshot=review\n\n\n============================== 1 passed in 0.78s ===============================\n</code></pre>", │ │ │ │ │ "title": "--inline-snapshot=create,fix,trim,update" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotshort-report", │ │ │ │ │ - "text": "<p>give a short report over which changes can be made to the snapshots</p> <pre><code>> pytest test_something.py --inline-snapshot=short-report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.goly65pdMx\nplugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\nInfo: one snapshot can be trimmed (--inline-snapshot=trim)\nError: one snapshot is missing a value (--inline-snapshot=create)\n\nYou can also use --inline-snapshot=review to approve the changes interactively\n=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.20s ==========================\n</code></pre> <p>Info</p> <p>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.</p>", │ │ │ │ │ + "text": "<p>give a short report over which changes can be made to the snapshots</p> <pre><code>> pytest test_something.py --inline-snapshot=short-report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.3mA7RxdQwP\nplugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\nInfo: one snapshot can be trimmed (--inline-snapshot=trim)\nError: one snapshot is missing a value (--inline-snapshot=create)\n\nYou can also use --inline-snapshot=review to approve the changes interactively\n=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.47s ==========================\n</code></pre> <p>Info</p> <p>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.</p>", │ │ │ │ │ "title": "--inline-snapshot=short-report" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotreport", │ │ │ │ │ - "text": "<p>Shows a diff report over which changes can be made to the snapshots</p> <pre><code>> pytest test_something.py --inline-snapshot=report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.Gln36p4x3J\nplugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -2,5 +2,5 @@ |\n| |\n| |\n| |\n| def test_something(): |\n| - assert 1 == snapshot() |\n| + assert 1 == snapshot(1) |\n| assert 2 <= snapshot(5) |\n+------------------------------------------------------------------------------+\nThese changes are not applied.\nUse --inline-snapshot=create to apply them, or use the interactive mode with \n--inline-snapshot=review\n\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Trim snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -3,4 +3,4 @@ |\n| |\n| |\n| def test_something(): |\n| assert 1 == snapshot() |\n| - assert 2 <= snapshot(5) |\n| + assert 2 <= snapshot(2) |\n+------------------------------------------------------------------------------+\nThese changes are not applied.\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \n--inline-snapshot=review\n\n=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.20s ==========================\n</code></pre>", │ │ │ │ │ + "text": "<p>Shows a diff report over which changes can be made to the snapshots</p> <pre><code>> pytest test_something.py --inline-snapshot=report\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.vMzO11EVRF\nplugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0\ncollected 1 item\n\ntest_something.py .E [100%]\n\n==================================== ERRORS ====================================\n_____________________ ERROR at teardown of test_something ______________________\nyour snapshot is missing one value.\n=============================== inline snapshot ================================\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -2,5 +2,5 @@ |\n| |\n| |\n| |\n| def test_something(): |\n| - assert 1 == snapshot() |\n| + assert 1 == snapshot(1) |\n| assert 2 <= snapshot(5) |\n+------------------------------------------------------------------------------+\nThese changes are not applied.\nUse --inline-snapshot=create to apply them, or use the interactive mode with \n--inline-snapshot=review\n\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Trim snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -3,4 +3,4 @@ |\n| |\n| |\n| def test_something(): |\n| assert 1 == snapshot() |\n| - assert 2 <= snapshot(5) |\n| + assert 2 <= snapshot(2) |\n+------------------------------------------------------------------------------+\nThese changes are not applied.\nUse --inline-snapshot=trim to apply them, or use the interactive mode with \n--inline-snapshot=review\n\n=========================== short test summary info ============================\nERROR test_something.py::test_something - Failed: your snapshot is missing one value.\n========================== 1 passed, 1 error in 0.47s ==========================\n</code></pre>", │ │ │ │ │ "title": "--inline-snapshot=report" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotreview", │ │ │ │ │ - "text": "<p>Shows a diff report for each category and ask if you want to apply the changes</p> <pre><code>> pytest test_something.py --inline-snapshot=review\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.7PV5fQ7M4O\nplugins: pytest_freezer-0.4.9, typeguard-4.4.1, subtests-0.13.1, inline-snapshot-0.19.3, time-machine-2.16.0, mock-3.14.0, hypothesis-6.124.0\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -2,5 +2,5 @@ |\n| |\n| |\n| |\n| def test_something(): |\n| - assert 1 == snapshot() |\n| + assert 1 == snapshot(1) |\n| assert 2 <= snapshot(5) |\n+------------------------------------------------------------------------------+\ndo you want to create these snapshots? [y/n] (n): \n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Trim snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -3,4 +3,4 @@ |\n| |\n| |\n| def test_something(): |\n| assert 1 == snapshot(1) |\n| - assert 2 <= snapshot(5) |\n| + assert 2 <= snapshot(2) |\n+------------------------------------------------------------------------------+\ndo you want to trim these snapshots? [y/n] (n): \n\n============================== 1 passed in 0.21s ===============================\n</code></pre>", │ │ │ │ │ + "text": "<p>Shows a diff report for each category and ask if you want to apply the changes</p> <pre><code>> pytest test_something.py --inline-snapshot=review\n============================= test session starts ==============================\nplatform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0\nrootdir: /tmp/tmp.Rh9Ctv4BLJ\nplugins: typeguard-4.4.1, time-machine-2.16.0, pytest_freezer-0.4.9, subtests-0.13.1, inline-snapshot-0.19.3, hypothesis-6.124.0, mock-3.14.0\ncollected 1 item\n\ntest_something.py . [100%]\n=============================== inline snapshot ================================\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Create snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -2,5 +2,5 @@ |\n| |\n| |\n| |\n| def test_something(): |\n| - assert 1 == snapshot() |\n| + assert 1 == snapshot(1) |\n| assert 2 <= snapshot(5) |\n+------------------------------------------------------------------------------+\ndo you want to create these snapshots? [y/n] (n): \n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Trim snapshots \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n+----------------------------- test_something.py ------------------------------+\n| @@ -3,4 +3,4 @@ |\n| |\n| |\n| def test_something(): |\n| assert 1 == snapshot(1) |\n| - assert 2 <= snapshot(5) |\n| + assert 2 <= snapshot(2) |\n+------------------------------------------------------------------------------+\ndo you want to trim these snapshots? [y/n] (n): \n\n============================== 1 passed in 0.51s ===============================\n</code></pre>", │ │ │ │ │ "title": "--inline-snapshot=review" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotdisable", │ │ │ │ │ "text": "<p>Disables all the snapshot logic. <code>snapshot(x)</code> will just return <code>x</code>. 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.</p> <p>deprecation</p> <p>This option was previously called <code>--inline-snapshot-disable</code></p>", │ │ │ │ │ "title": "--inline-snapshot=disable" │ │ │ │ │ },