53.2 KB
/srv/reproducible-results/rbuild-debian/r-b-build.qWUNjxaK/b1/python-inline-snapshot_0.22.3-1_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.qWUNjxaK/b2/python-inline-snapshot_0.22.3-1_amd64.changes
324 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·9933aa8a7b83b138294c559c99a72c5d·706696·doc·optional·python-inline-snapshot-doc_0.22.3-1_all.deb1 ·b837b22b47b2ad4a12e7c96f5a69bd32·706692·doc·optional·python-inline-snapshot-doc_0.22.3-1_all.deb
2 ·dd902da5ab7e5b5c3bd535a9a8c3676e·40892·python·optional·python3-inline-snapshot_0.22.3-1_all.deb2 ·dd902da5ab7e5b5c3bd535a9a8c3676e·40892·python·optional·python3-inline-snapshot_0.22.3-1_all.deb
52.7 KB
python-inline-snapshot-doc_0.22.3-1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-04-16·12:16:02.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-04-16·12:16:02.000000·debian-binary
2 -rw-r--r--···0········0········0·····3156·2025-04-16·12:16:02.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3156·2025-04-16·12:16:02.000000·control.tar.xz
3 -rw-r--r--···0········0········0···703348·2025-04-16·12:16:02.000000·data.tar.xz3 -rw-r--r--···0········0········0···703344·2025-04-16·12:16:02.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
52.1 KB
data.tar.xz
52.1 KB
data.tar
22.2 KB
./usr/share/doc/python-inline-snapshot-doc/html/pytest.html
    
Offset 1266, 16 lines modifiedOffset 1266, 16 lines modified
1266 <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>1266 <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>
1267 <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>1267 <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>
1268 <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">&lt;=</span>·<span·class="n">snapshot</span><span·class="p">(</span><span·class="mi">5</span><span·class="p">)</span>1268 <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">&lt;=</span>·<span·class="n">snapshot</span><span·class="p">(</span><span·class="mi">5</span><span·class="p">)</span>
1269 </code></pre></div>1269 </code></pre></div>
1270 <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">&gt;·pytest·test_something.py·--inline-snapshot=create,report</span>1270 <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">&gt;·pytest·test_something.py·--inline-snapshot=create,report</span>
1271 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1271 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1272 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.01272 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
1273 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.3FJUDxJAt81273 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.qdpk3Una2m
1274 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.01274 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
1275 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1275 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1276 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1276 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1277 <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>1277 <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>
1278 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1278 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1279 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════1279 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════
1280 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>───────────────────────────────·Create·snapshots·───────────────────────────────1280 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
1281 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>+-----------------------------·test_something.py·------------------------------+1281 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1314, 16 lines modifiedOffset 1314, 16 lines modified
1314 <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.24s·==========================</span>1314 <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.24s·==========================</span>
1315 </code></pre></div>1315 </code></pre></div>
1316 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>1316 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>
1317 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>1317 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>
1318 <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">&gt;·pytest·test_something.py·--inline-snapshot=short-report</span>1318 <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">&gt;·pytest·test_something.py·--inline-snapshot=short-report</span>
1319 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1319 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1320 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.01320 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
1321 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.R7S12mkD9L1321 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.1IhmZ2ujBk
1322 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.01322 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
1323 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1323 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1324 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1324 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1325 <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>1325 <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>
1326 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1326 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1327 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════1327 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════
1328 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)1328 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)
1329 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)1329 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)
Offset 1332, 28 lines modifiedOffset 1332, 28 lines modified
1332 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>1332 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>
1333 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>1333 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>
1334 <a·id="__codelineno-0-17"·name="__codelineno-0-17"·href="#__codelineno-0-17"></a>====================================·ERRORS·====================================1334 <a·id="__codelineno-0-17"·name="__codelineno-0-17"·href="#__codelineno-0-17"></a>====================================·ERRORS·====================================
1335 <a·id="__codelineno-0-18"·name="__codelineno-0-18"·href="#__codelineno-0-18"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Red">_____________________·ERROR·at·teardown·of·test_something·______________________</span>1335 <a·id="__codelineno-0-18"·name="__codelineno-0-18"·href="#__codelineno-0-18"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Red">_____________________·ERROR·at·teardown·of·test_something·______________________</span>
1336 <a·id="__codelineno-0-19"·name="__codelineno-0-19"·href="#__codelineno-0-19"></a>your·snapshot·is·missing·one·value.1336 <a·id="__codelineno-0-19"·name="__codelineno-0-19"·href="#__codelineno-0-19"></a>your·snapshot·is·missing·one·value.
1337 <a·id="__codelineno-0-20"·name="__codelineno-0-20"·href="#__codelineno-0-20"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>1337 <a·id="__codelineno-0-20"·name="__codelineno-0-20"·href="#__codelineno-0-20"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>
1338 <a·id="__codelineno-0-21"·name="__codelineno-0-21"·href="#__codelineno-0-21"></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.1338 <a·id="__codelineno-0-21"·name="__codelineno-0-21"·href="#__codelineno-0-21"></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.
1339 <a·id="__codelineno-0-22"·name="__codelineno-0-22"·href="#__codelineno-0-22"></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.28s·==========================</span>1339 <a·id="__codelineno-0-22"·name="__codelineno-0-22"·href="#__codelineno-0-22"></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.21s·==========================</span>
1340 </code></pre></div>1340 </code></pre></div>
1341 <div·class="admonition·info">1341 <div·class="admonition·info">
1342 <p·class="admonition-title">Info</p>1342 <p·class="admonition-title">Info</p>
1343 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.1343 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.
1344 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>1344 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>
1345 </div>1345 </div>
1346 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>1346 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>
1347 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>1347 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>
1348 <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">&gt;·pytest·test_something.py·--inline-snapshot=report</span>1348 <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">&gt;·pytest·test_something.py·--inline-snapshot=report</span>
1349 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1349 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1350 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.01350 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
1351 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.p6XTsOL32q1351 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.ZaCCa2gQfj
1352 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.01352 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
1353 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1353 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1354 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1354 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1355 <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>1355 <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>
1356 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1356 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1357 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════1357 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════
1358 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>───────────────────────────────·Create·snapshots·───────────────────────────────1358 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
1359 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>+-----------------------------·test_something.py·------------------------------+1359 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1387, 23 lines modifiedOffset 1387, 23 lines modified
1387 <a·id="__codelineno-0-40"·name="__codelineno-0-40"·href="#__codelineno-0-40"></a>1387 <a·id="__codelineno-0-40"·name="__codelineno-0-40"·href="#__codelineno-0-40"></a>
1388 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>1388 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>
1389 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>====================================·ERRORS·====================================1389 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>====================================·ERRORS·====================================
1390 <a·id="__codelineno-0-43"·name="__codelineno-0-43"·href="#__codelineno-0-43"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Red">_____________________·ERROR·at·teardown·of·test_something·______________________</span>1390 <a·id="__codelineno-0-43"·name="__codelineno-0-43"·href="#__codelineno-0-43"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Red">_____________________·ERROR·at·teardown·of·test_something·______________________</span>
1391 <a·id="__codelineno-0-44"·name="__codelineno-0-44"·href="#__codelineno-0-44"></a>your·snapshot·is·missing·one·value.1391 <a·id="__codelineno-0-44"·name="__codelineno-0-44"·href="#__codelineno-0-44"></a>your·snapshot·is·missing·one·value.
1392 <a·id="__codelineno-0-45"·name="__codelineno-0-45"·href="#__codelineno-0-45"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>1392 <a·id="__codelineno-0-45"·name="__codelineno-0-45"·href="#__codelineno-0-45"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>
1393 <a·id="__codelineno-0-46"·name="__codelineno-0-46"·href="#__codelineno-0-46"></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.1393 <a·id="__codelineno-0-46"·name="__codelineno-0-46"·href="#__codelineno-0-46"></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.
1394 <a·id="__codelineno-0-47"·name="__codelineno-0-47"·href="#__codelineno-0-47"></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.24s·==========================</span>1394 <a·id="__codelineno-0-47"·name="__codelineno-0-47"·href="#__codelineno-0-47"></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.23s·==========================</span>
1395 </code></pre></div>1395 </code></pre></div>
1396 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>1396 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>
1397 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>1397 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>
1398 <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">&gt;·pytest·test_something.py·--inline-snapshot=review</span>1398 <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">&gt;·pytest·test_something.py·--inline-snapshot=review</span>
1399 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1399 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1400 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.01400 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
1401 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.UBubtECNjA1401 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.EsGOFijC1r
1402 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.01402 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
1403 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1403 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1404 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1404 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1405 <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>1405 <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>
1406 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1406 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1407 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════1407 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>═══════════════════════════════·inline-snapshot·════════════════════════════════
1408 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>───────────────────────────────·Create·snapshots·───────────────────────────────1408 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
1409 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>+-----------------------------·test_something.py·------------------------------+1409 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1431, 15 lines modifiedOffset 1431, 15 lines modified
1431 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>1431 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>
1432 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>1432 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>
1433 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>====================================·ERRORS·====================================1433 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>====================================·ERRORS·====================================
1434 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Red">_____________________·ERROR·at·teardown·of·test_something·______________________</span>1434 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Red">_____________________·ERROR·at·teardown·of·test_something·______________________</span>
1435 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>your·snapshot·is·missing·one·value.1435 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>your·snapshot·is·missing·one·value.
1436 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>1436 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>
1437 <a·id="__codelineno-0-40"·name="__codelineno-0-40"·href="#__codelineno-0-40"></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.1437 <a·id="__codelineno-0-40"·name="__codelineno-0-40"·href="#__codelineno-0-40"></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.
1438 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></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.25s·==========================</span>1438 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></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.24s·==========================</span>
1439 </code></pre></div>1439 </code></pre></div>
1440 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>1440 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>
1441 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.1441 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.
1442 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>1442 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>
1443 <div·class="admonition·info">1443 <div·class="admonition·info">
1444 <p·class="admonition-title">deprecation</p>1444 <p·class="admonition-title">deprecation</p>
1445 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>1445 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>
5.55 KB
html2text {}
    
Offset 77, 17 lines modifiedOffset 77, 17 lines modified
77 def·test_something():77 def·test_something():
78 ····assert·1·==·snapshot()78 ····assert·1·==·snapshot()
79 ····assert·2·<=·snapshot(5)79 ····assert·2·<=·snapshot(5)
80 >·pytest·test_something.py·--inline-snapshot=create,report80 >·pytest·test_something.py·--inline-snapshot=create,report
81 =============================·test·session·starts81 =============================·test·session·starts
82 ==============================82 ==============================
83 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.083 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
84 rootdir:·/tmp/tmp.3FJUDxJAt8 
85 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3, 
86 subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.084 rootdir:·/tmp/tmp.qdpk3Una2m
 85 plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-
 86 3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
87 collected·1·item87 collected·1·item
  
88 test_something.py·.E·····················································[100%]88 test_something.py·.E·····················································[100%]
  
89 ═══════════════════════════════·inline-snapshot89 ═══════════════════════════════·inline-snapshot
90 ════════════════════════════════90 ════════════════════════════════
91 ───────────────────────────────·Create·snapshots91 ───────────────────────────────·Create·snapshots
Offset 153, 17 lines modifiedOffset 153, 17 lines modified
153 ==========================153 ==========================
154 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=s\x8sh\x8ho\x8or\x8rt\x8t-\x8-r\x8re\x8ep\x8po\x8or\x8rt\x8t_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*154 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=s\x8sh\x8ho\x8or\x8rt\x8t-\x8-r\x8re\x8ep\x8po\x8or\x8rt\x8t_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
155 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots155 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots
156 >·pytest·test_something.py·--inline-snapshot=short-report156 >·pytest·test_something.py·--inline-snapshot=short-report
157 =============================·test·session·starts157 =============================·test·session·starts
158 ==============================158 ==============================
159 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0159 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
160 rootdir:·/tmp/tmp.R7S12mkD9L160 rootdir:·/tmp/tmp.1IhmZ2ujBk
161 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3, 
162 subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0161 plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-
 162 3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
163 collected·1·item163 collected·1·item
  
164 test_something.py·.E·····················································[100%]164 test_something.py·.E·····················································[100%]
  
165 ═══════════════════════════════·inline-snapshot165 ═══════════════════════════════·inline-snapshot
166 ════════════════════════════════166 ════════════════════════════════
167 Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)167 Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)
Offset 177, 29 lines modifiedOffset 177, 29 lines modified
177 _____________________·ERROR·at·teardown·of·test_something177 _____________________·ERROR·at·teardown·of·test_something
178 ______________________178 ______________________
179 your·snapshot·is·missing·one·value.179 your·snapshot·is·missing·one·value.
180 ===========================·short·test·summary·info180 ===========================·short·test·summary·info
181 ============================181 ============================
182 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one182 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
183 value.183 value.
184 ==========================·1·passed,·1·error·in·0.28s184 ==========================·1·passed,·1·error·in·0.21s
185 ==========================185 ==========================
186 Info186 Info
187 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled187 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled
188 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this188 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this
189 restriction·is·lifted.189 restriction·is·lifted.
190 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=r\x8re\x8ep\x8po\x8or\x8rt\x8t_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*190 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=r\x8re\x8ep\x8po\x8or\x8rt\x8t_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
191 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots191 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots
192 >·pytest·test_something.py·--inline-snapshot=report192 >·pytest·test_something.py·--inline-snapshot=report
193 =============================·test·session·starts193 =============================·test·session·starts
194 ==============================194 ==============================
195 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0195 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
196 rootdir:·/tmp/tmp.p6XTsOL32q 
197 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3, 
198 subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0196 rootdir:·/tmp/tmp.ZaCCa2gQfj
 197 plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-
 198 3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
199 collected·1·item199 collected·1·item
  
200 test_something.py·.E·····················································[100%]200 test_something.py·.E·····················································[100%]
  
201 ═══════════════════════════════·inline-snapshot201 ═══════════════════════════════·inline-snapshot
202 ════════════════════════════════202 ════════════════════════════════
203 ───────────────────────────────·Create·snapshots203 ───────────────────────────────·Create·snapshots
Offset 259, 25 lines modifiedOffset 259, 25 lines modified
259 _____________________·ERROR·at·teardown·of·test_something259 _____________________·ERROR·at·teardown·of·test_something
260 ______________________260 ______________________
261 your·snapshot·is·missing·one·value.261 your·snapshot·is·missing·one·value.
262 ===========================·short·test·summary·info262 ===========================·short·test·summary·info
263 ============================263 ============================
264 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one264 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
265 value.265 value.
266 ==========================·1·passed,·1·error·in·0.24s266 ==========================·1·passed,·1·error·in·0.23s
267 ==========================267 ==========================
268 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=r\x8re\x8ev\x8vi\x8ie\x8ew\x8w_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*268 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=r\x8re\x8ev\x8vi\x8ie\x8ew\x8w_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
269 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes269 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes
270 >·pytest·test_something.py·--inline-snapshot=review270 >·pytest·test_something.py·--inline-snapshot=review
271 =============================·test·session·starts271 =============================·test·session·starts
272 ==============================272 ==============================
273 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0273 platform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0
274 rootdir:·/tmp/tmp.UBubtECNjA 
275 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3, 
276 subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0274 rootdir:·/tmp/tmp.EsGOFijC1r
 275 plugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-
 276 3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0
277 collected·1·item277 collected·1·item
  
278 test_something.py·.E·····················································[100%]278 test_something.py·.E·····················································[100%]
  
279 ═══════════════════════════════·inline-snapshot279 ═══════════════════════════════·inline-snapshot
280 ════════════════════════════════280 ════════════════════════════════
281 ───────────────────────────────·Create·snapshots281 ───────────────────────────────·Create·snapshots
Offset 331, 15 lines modifiedOffset 331, 15 lines modified
331 _____________________·ERROR·at·teardown·of·test_something331 _____________________·ERROR·at·teardown·of·test_something
332 ______________________332 ______________________
333 your·snapshot·is·missing·one·value.333 your·snapshot·is·missing·one·value.
334 ===========================·short·test·summary·info334 ===========================·short·test·summary·info
335 ============================335 ============================
336 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one336 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
337 value.337 value.
338 ==========================·1·passed,·1·error·in·0.25s338 ==========================·1·passed,·1·error·in·0.24s
339 ==========================339 ==========================
340 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=d\x8di\x8is\x8sa\x8ab\x8bl\x8le\x8e_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*340 *\x8**\x8**\x8**\x8**\x8*·-\x8--\x8-i\x8in\x8nl\x8li\x8in\x8ne\x8e-\x8-s\x8sn\x8na\x8ap\x8ps\x8sh\x8ho\x8ot\x8t=\x8=d\x8di\x8is\x8sa\x8ab\x8bl\x8le\x8e_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
341 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be341 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be
342 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,342 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,
343 or·if·you·want·to·speedup·your·CI.343 or·if·you·want·to·speedup·your·CI.
344 deprecation344 deprecation
345 This·option·was·previously·called·--inline-snapshot-disable345 This·option·was·previously·called·--inline-snapshot-disable
29.9 KB
./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json
29.7 KB
Pretty-printed
Similarity: 0.9992877492877493% Differences: {"'docs'": "{218: {'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 &lt;= snapshot(5)\\n</code></pre> <pre><code>&gt; pytest test_something.py ' '--inline-snapshot=create,report\\n============================= test session starts ' '============== […]
    
Offset 1097, 30 lines modifiedOffset 1097, 30 lines modified
1097 ········{1097 ········{
1098 ············"location":·"pytest.html",1098 ············"location":·"pytest.html",
1099 ············"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·&lt;=·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>",1099 ············"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·&lt;=·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>",
1100 ············"title":·"pytest·integration"1100 ············"title":·"pytest·integration"
1101 ········},1101 ········},
1102 ········{1102 ········{
1103 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",1103 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",
1104 ············"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·&lt;=·snapshot(5)\n</code></pre>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=create,report\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.3FJUDxJAt8\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550·inline-snapshot·\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\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·&lt;=·snapshot(5)·················································|\n+------------------------------------------------------------------------------+\nThese·changes·will·be·applied,·because·you·used·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·&lt;=·snapshot(5)·················································|\n|·+····assert·2·&lt;=·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\n====================================·ERRORS·====================================\n_____________________·ERROR·at·teardown·of·test_something·______________________\nyour·snapshot·is·missing·one·value.\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.24s·==========================\n</code></pre>",1104 ············"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·&lt;=·snapshot(5)\n</code></pre>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=create,report\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.qdpk3Una2m\nplugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550·inline-snapshot·\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\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·&lt;=·snapshot(5)·················································|\n+------------------------------------------------------------------------------+\nThese·changes·will·be·applied,·because·you·used·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·&lt;=·snapshot(5)·················································|\n|·+····assert·2·&lt;=·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\n====================================·ERRORS·====================================\n_____________________·ERROR·at·teardown·of·test_something·______________________\nyour·snapshot·is·missing·one·value.\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.24s·==========================\n</code></pre>",
1105 ············"title":·"--inline-snapshot=create,fix,trim,update"1105 ············"title":·"--inline-snapshot=create,fix,trim,update"
1106 ········},1106 ········},
1107 ········{1107 ········{
1108 ············"location":·"pytest.html#-inline-snapshotshort-report",1108 ············"location":·"pytest.html#-inline-snapshotshort-report",
1109 ············"text":·"<p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=short-report\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.R7S12mkD9L\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2[·...·truncated·by·diffoscope;·len:·1017,·SHA:·5f866efe465ce726bf932bc32da2f8a44b7d30f4bd799879826ea1c7fc70ef6c·...·]s·==========================\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>",1109 ············"text":·"<p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=short-report\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.1IhmZ2ujBk\nplugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2[·...·truncated·by·diffoscope;·len:·1017,·SHA:·8e336ba656b888dc812d58850debd9f6e3ddbeb48fe9acfac96341bf8d7bef7d·...·]s·==========================\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>",
1110 ············"title":·"--inline-snapshot=short-report"1110 ············"title":·"--inline-snapshot=short-report"
1111 ········},1111 ········},
1112 ········{1112 ········{
1113 ············"location":·"pytest.html#-inline-snapshotreport",1113 ············"location":·"pytest.html#-inline-snapshotreport",
1114 ············"text":·"<p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=report\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.p6XTsOL32q\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2[·...·truncated·by·diffoscope;·len:·3445,·SHA:·3636b6ab5f8c091b5a866ab15c9458f01eae1781437c877b60694ae055628018·...·]s·==========================\n</code></pre>",1114 ············"text":·"<p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=report\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.ZaCCa2gQfj\nplugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2[·...·truncated·by·diffoscope;·len:·3445,·SHA:·ba2ec6c52171f8f1f9c55483805b38da24bbbfcf30bd50994f6a23d734722cab·...·]s·==========================\n</code></pre>",
1115 ············"title":·"--inline-snapshot=report"1115 ············"title":·"--inline-snapshot=report"
1116 ········},1116 ········},
1117 ········{1117 ········{
1118 ············"location":·"pytest.html#-inline-snapshotreview",1118 ············"location":·"pytest.html#-inline-snapshotreview",
1119 ············"text":·"<p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=review\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.UBubtECNjA\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.22.3,·subtests-0.13.1,·hypothesis-6.130.5,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2[·...·truncated·by·diffoscope;·len:·3271,·SHA:·4f1eb3870ff18961808691d0abd178dfde480d80aaec30fff4cbced18ef09427·...·]s·==========================\n</code></pre>",1119 ············"text":·"<p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>·<pre><code>&gt;·pytest·test_something.py·--inline-snapshot=review\n=============================·test·session·starts·==============================\nplatform·linux·--·Python·3.13.3,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.EsGOFijC1r\nplugins:·subtests-0.13.1,·inline-snapshot-0.22.3,·pytest_freezer-0.4.9,·mock-3.14.0,·hypothesis-6.130.5,·time-machine-2.16.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n\u2550\u2550\u2[·...·truncated·by·diffoscope;·len:·3271,·SHA:·f05f950a9e54ae15a6609fc8bfae327b203e485d5213517e60457bed4563e493·...·]s·==========================\n</code></pre>",
1120 ············"title":·"--inline-snapshot=review"1120 ············"title":·"--inline-snapshot=review"
1121 ········},1121 ········},
1122 ········{1122 ········{
1123 ············"location":·"pytest.html#-inline-snapshotdisable",1123 ············"location":·"pytest.html#-inline-snapshotdisable",
1124 ············"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>",1124 ············"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>",
1125 ············"title":·"--inline-snapshot=disable"1125 ············"title":·"--inline-snapshot=disable"
1126 ········},1126 ········},