52.7 KB
/srv/reproducible-results/rbuild-debian/r-b-build.OxHPDi52/b1/python-inline-snapshot_0.20.7-1_i386.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.OxHPDi52/b2/python-inline-snapshot_0.20.7-1_i386.changes
324 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·36fc6743598a793cf1a16abc32ad69cb·539880·doc·optional·python-inline-snapshot-doc_0.20.7-1_all.deb1 ·c5cb833e1037a7e1ab4624b592553b15·539876·doc·optional·python-inline-snapshot-doc_0.20.7-1_all.deb
2 ·ab2f65c2c524753f53a8027fd7d91c62·38408·python·optional·python3-inline-snapshot_0.20.7-1_all.deb2 ·ab2f65c2c524753f53a8027fd7d91c62·38408·python·optional·python3-inline-snapshot_0.20.7-1_all.deb
52.2 KB
python-inline-snapshot-doc_0.20.7-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-03-19·16:22:50.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-03-19·16:22:50.000000·debian-binary
2 -rw-r--r--···0········0········0·····3040·2025-03-19·16:22:50.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3040·2025-03-19·16:22:50.000000·control.tar.xz
3 -rw-r--r--···0········0········0···536648·2025-03-19·16:22:50.000000·data.tar.xz3 -rw-r--r--···0········0········0···536644·2025-03-19·16:22:50.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
51.6 KB
data.tar.xz
51.6 KB
data.tar
24.2 KB
./usr/share/doc/python-inline-snapshot-doc/html/pytest.html
    
Offset 1184, 16 lines modifiedOffset 1184, 16 lines modified
1184 <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>1184 <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>
1185 <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>1185 <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>
1186 <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>1186 <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>
1187 </code></pre></div>1187 </code></pre></div>
1188 <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>1188 <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>
1189 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1189 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1190 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.01190 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
1191 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.5SjcTJ0oD81191 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.dZluq7vSY7
1192 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.41192 <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.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
1193 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1193 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1194 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1194 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1195 <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>1195 <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>
1196 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1196 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1197 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1197 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1198 <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>1198 <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>
1199 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.1199 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.
Offset 1223, 51 lines modifiedOffset 1223, 51 lines modified
1223 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>+------------------------------------------------------------------------------+1223 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>+------------------------------------------------------------------------------+
1224 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a>These·changes·are·not·applied.1224 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a>These·changes·are·not·applied.
1225 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with·1225 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with·
1226 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>--inline-snapshot=review1226 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>--inline-snapshot=review
1227 <a·id="__codelineno-0-40"·name="__codelineno-0-40"·href="#__codelineno-0-40"></a>1227 <a·id="__codelineno-0-40"·name="__codelineno-0-40"·href="#__codelineno-0-40"></a>
1228 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>1228 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>
1229 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></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.1229 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></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.
1230 <a·id="__codelineno-0-43"·name="__codelineno-0-43"·href="#__codelineno-0-43"></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.22s·==========================</span>1230 <a·id="__codelineno-0-43"·name="__codelineno-0-43"·href="#__codelineno-0-43"></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.63s·==========================</span>
1231 </code></pre></div>1231 </code></pre></div>
1232 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>1232 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>
1233 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>1233 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>
1234 <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>1234 <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>
1235 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1235 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1236 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.01236 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
1237 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.Wq1vmv1e9X1237 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.e6UXTdi67O
1238 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.41238 <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.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
1239 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1239 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1240 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1240 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1241 <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>1241 <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>
1242 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1242 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1243 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1243 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1244 <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>1244 <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>
1245 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.1245 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.
1246 <a·id="__codelineno-0-13"·name="__codelineno-0-13"·href="#__codelineno-0-13"></a>===============================·inline·snapshot·================================1246 <a·id="__codelineno-0-13"·name="__codelineno-0-13"·href="#__codelineno-0-13"></a>===============================·inline·snapshot·================================
1247 <a·id="__codelineno-0-14"·name="__codelineno-0-14"·href="#__codelineno-0-14"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)1247 <a·id="__codelineno-0-14"·name="__codelineno-0-14"·href="#__codelineno-0-14"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)
1248 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)1248 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)
1249 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>1249 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>
1250 <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·interactively1250 <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
1251 <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>1251 <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>
1252 <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.1252 <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.
1253 <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>1253 <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.48s·==========================</span>
1254 </code></pre></div>1254 </code></pre></div>
1255 <div·class="admonition·info">1255 <div·class="admonition·info">
1256 <p·class="admonition-title">Info</p>1256 <p·class="admonition-title">Info</p>
1257 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.1257 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.
1258 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>1258 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>
1259 </div>1259 </div>
1260 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>1260 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>
1261 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>1261 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>
1262 <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>1262 <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>
1263 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1263 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1264 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.01264 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
1265 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.lsJ2y2csfj1265 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.UcRnvuSFES
1266 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.41266 <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.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
1267 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1267 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1268 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1268 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1269 <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>1269 <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>
1270 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1270 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1271 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1271 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1272 <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>1272 <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>
1273 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.1273 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.
Offset 1299, 23 lines modifiedOffset 1299, 23 lines modified
1299 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+1299 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+
1300 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>These·changes·are·not·applied.1300 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>These·changes·are·not·applied.
1301 <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·1301 <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·
1302 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>--inline-snapshot=review1302 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>--inline-snapshot=review
1303 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>1303 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>
1304 <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>1304 <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>
1305 <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.1305 <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.
1306 <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.21s·==========================</span>1306 <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.53s·==========================</span>
1307 </code></pre></div>1307 </code></pre></div>
1308 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>1308 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>
1309 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>1309 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>
1310 <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>1310 <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>
1311 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1311 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1312 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.01312 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
1313 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.0lr1jrhBLA1313 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.QPRBhh39n3
1314 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.41314 <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.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
1315 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1315 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1316 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1316 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1317 <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>1317 <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>
1318 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1318 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1319 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1319 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1320 <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>1320 <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>
1321 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.1321 <a·id="__codelineno-0-12"·name="__codelineno-0-12"·href="#__codelineno-0-12"></a>your·snapshot·is·missing·one·value.
Offset 1341, 15 lines modifiedOffset 1341, 15 lines modified
1341 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>|······assert·1·==·snapshot(1)·················································|1341 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>|······assert·1·==·snapshot(1)·················································|
1342 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>|·-····assert·2·&lt;=·snapshot(5)·················································|1342 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>|·-····assert·2·&lt;=·snapshot(5)·················································|
1343 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|1343 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|
1344 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>+------------------------------------------------------------------------------+1344 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>+------------------------------------------------------------------------------+
1345 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>do·you·want·to·trim·these·snapshots?·[y/n]·(n):·1345 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>do·you·want·to·trim·these·snapshots?·[y/n]·(n):·
1346 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>1346 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a><span·class="·-Color·-Color-Bold·-Color-Bold-Cyan">===========================·short·test·summary·info·============================</span>
1347 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></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.1347 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></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.
1348 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></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>1348 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></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.59s·==========================</span>
1349 </code></pre></div>1349 </code></pre></div>
1350 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>1350 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>
1351 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.1351 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.
1352 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>1352 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>
1353 <div·class="admonition·info">1353 <div·class="admonition·info">
1354 <p·class="admonition-title">deprecation</p>1354 <p·class="admonition-title">deprecation</p>
1355 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>1355 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>
5.98 KB
html2text {}
    
Offset 73, 17 lines modifiedOffset 73, 17 lines modified
73 def·test_something():73 def·test_something():
74 ····assert·1·==·snapshot()74 ····assert·1·==·snapshot()
75 ····assert·2·<=·snapshot(5)75 ····assert·2·<=·snapshot(5)
76 >·pytest·test_something.py·--inline-snapshot=create,report76 >·pytest·test_something.py·--inline-snapshot=create,report
77 =============================·test·session·starts77 =============================·test·session·starts
78 ==============================78 ==============================
79 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.079 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
80 rootdir:·/tmp/tmp.5SjcTJ0oD8 
81 plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time- 
82 machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.480 rootdir:·/tmp/tmp.dZluq7vSY7
 81 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,
 82 hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
83 collected·1·item83 collected·1·item
  
84 test_something.py·.E·····················································[100%]84 test_something.py·.E·····················································[100%]
  
85 ====================================·ERRORS85 ====================================·ERRORS
86 ====================================86 ====================================
87 _____________________·ERROR·at·teardown·of·test_something87 _____________________·ERROR·at·teardown·of·test_something
Offset 139, 25 lines modifiedOffset 139, 25 lines modified
139 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with139 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with
140 --inline-snapshot=review140 --inline-snapshot=review
  
141 ===========================·short·test·summary·info141 ===========================·short·test·summary·info
142 ============================142 ============================
143 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one143 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
144 value.144 value.
145 ==========================·1·passed,·1·error·in·0.22s145 ==========================·1·passed,·1·error·in·0.63s
146 ==========================146 ==========================
147 *\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*147 *\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*
148 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots148 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots
149 >·pytest·test_something.py·--inline-snapshot=short-report149 >·pytest·test_something.py·--inline-snapshot=short-report
150 =============================·test·session·starts150 =============================·test·session·starts
151 ==============================151 ==============================
152 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0152 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
153 rootdir:·/tmp/tmp.Wq1vmv1e9X 
154 plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time- 
155 machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4153 rootdir:·/tmp/tmp.e6UXTdi67O
 154 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,
 155 hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
156 collected·1·item156 collected·1·item
  
157 test_something.py·.E·····················································[100%]157 test_something.py·.E·····················································[100%]
  
158 ====================================·ERRORS158 ====================================·ERRORS
159 ====================================159 ====================================
160 _____________________·ERROR·at·teardown·of·test_something160 _____________________·ERROR·at·teardown·of·test_something
Offset 169, 29 lines modifiedOffset 169, 29 lines modified
169 Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)169 Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)
  
170 You·can·also·use·--inline-snapshot=review·to·approve·the·changes·interactively170 You·can·also·use·--inline-snapshot=review·to·approve·the·changes·interactively
171 ===========================·short·test·summary·info171 ===========================·short·test·summary·info
172 ============================172 ============================
173 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one173 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
174 value.174 value.
175 ==========================·1·passed,·1·error·in·0.20s175 ==========================·1·passed,·1·error·in·0.48s
176 ==========================176 ==========================
177 Info177 Info
178 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled178 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled
179 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this179 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this
180 restriction·is·lifted.180 restriction·is·lifted.
181 *\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*181 *\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*
182 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots182 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots
183 >·pytest·test_something.py·--inline-snapshot=report183 >·pytest·test_something.py·--inline-snapshot=report
184 =============================·test·session·starts184 =============================·test·session·starts
185 ==============================185 ==============================
186 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0186 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
187 rootdir:·/tmp/tmp.lsJ2y2csfj 
188 plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time- 
189 machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4187 rootdir:·/tmp/tmp.UcRnvuSFES
 188 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,
 189 hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
190 collected·1·item190 collected·1·item
  
191 test_something.py·.E·····················································[100%]191 test_something.py·.E·····················································[100%]
  
192 ====================================·ERRORS192 ====================================·ERRORS
193 ====================================193 ====================================
194 _____________________·ERROR·at·teardown·of·test_something194 _____________________·ERROR·at·teardown·of·test_something
Offset 249, 25 lines modifiedOffset 249, 25 lines modified
249 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with249 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with
250 --inline-snapshot=review250 --inline-snapshot=review
  
251 ===========================·short·test·summary·info251 ===========================·short·test·summary·info
252 ============================252 ============================
253 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one253 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
254 value.254 value.
255 ==========================·1·passed,·1·error·in·0.21s255 ==========================·1·passed,·1·error·in·0.53s
256 ==========================256 ==========================
257 *\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*257 *\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*
258 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes258 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes
259 >·pytest·test_something.py·--inline-snapshot=review259 >·pytest·test_something.py·--inline-snapshot=review
260 =============================·test·session·starts260 =============================·test·session·starts
261 ==============================261 ==============================
262 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0262 platform·linux·--·Python·3.13.2,·pytest-8.3.5,·pluggy-1.5.0
263 rootdir:·/tmp/tmp.0lr1jrhBLA 
264 plugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time- 
265 machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4263 rootdir:·/tmp/tmp.QPRBhh39n3
 264 plugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,
 265 hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0
266 collected·1·item266 collected·1·item
  
267 test_something.py·.E·····················································[100%]267 test_something.py·.E·····················································[100%]
  
268 ====================================·ERRORS268 ====================================·ERRORS
269 ====================================269 ====================================
270 _____________________·ERROR·at·teardown·of·test_something270 _____________________·ERROR·at·teardown·of·test_something
Offset 319, 15 lines modifiedOffset 319, 15 lines modified
319 +------------------------------------------------------------------------------319 +------------------------------------------------------------------------------
320 +320 +
321 do·you·want·to·trim·these·snapshots?·[y/n]·(n):321 do·you·want·to·trim·these·snapshots?·[y/n]·(n):
322 ===========================·short·test·summary·info322 ===========================·short·test·summary·info
323 ============================323 ============================
324 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one324 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
325 value.325 value.
326 ==========================·1·passed,·1·error·in·0.21s326 ==========================·1·passed,·1·error·in·0.59s
327 ==========================327 ==========================
328 *\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*328 *\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*
329 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be329 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be
330 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,330 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,
331 or·if·you·want·to·speedup·your·CI.331 or·if·you·want·to·speedup·your·CI.
332 deprecation332 deprecation
333 This·option·was·previously·called·--inline-snapshot-disable333 This·option·was·previously·called·--inline-snapshot-disable
27.4 KB
./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json
27.3 KB
Pretty-printed
Similarity: 0.9991789819376027% Differences: {"'docs'": "{187: {'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 942, 30 lines modifiedOffset 942, 30 lines modified
942 ········{942 ········{
943 ············"location":·"pytest.html",943 ············"location":·"pytest.html",
944 ············"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>",944 ············"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>",
945 ············"title":·"pytest·integration"945 ············"title":·"pytest·integration"
946 ········},946 ········},
947 ········{947 ········{
948 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",948 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",
949 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.5SjcTJ0oD8\nplugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·3063,·SHA:·3af08a03145cac85e696af66a25839041594ac68362a6f61ef159efb0b9641ba·...·]s·==========================\n</code></pre>",949 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.dZluq7vSY7\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·3063,·SHA:·28bbfd2aed2379ec6ce4bd048a6f595d491c7bd0f4886b5a29249e79ac7f8d6a·...·]s·==========================\n</code></pre>",
950 ············"title":·"--inline-snapshot=create,fix,trim,update"950 ············"title":·"--inline-snapshot=create,fix,trim,update"
951 ········},951 ········},
952 ········{952 ········{
953 ············"location":·"pytest.html#-inline-snapshotshort-report",953 ············"location":·"pytest.html#-inline-snapshotshort-report",
954 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.Wq1vmv1e9X\nplugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·698,·SHA:·06d0a73eba081ff8434d3357873aadf577bfa0f1d39ad95283cd963159000f11·...·]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>",954 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.e6UXTdi67O\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·698,·SHA:·2942a891c093ceaf09930af50f08914cedcd9835ecf8db86738b3811167e0fde·...·]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>",
955 ············"title":·"--inline-snapshot=short-report"955 ············"title":·"--inline-snapshot=short-report"
956 ········},956 ········},
957 ········{957 ········{
958 ············"location":·"pytest.html#-inline-snapshotreport",958 ············"location":·"pytest.html#-inline-snapshotreport",
959 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.lsJ2y2csfj\nplugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·3126,·SHA:·f0b934c30c7eb7d26586cf30dfe538c71b38fb01f5153788454f5a080227dd26·...·]s·==========================\n</code></pre>",959 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.UcRnvuSFES\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·3126,·SHA:·1afc9993a989a47bd7cfc42be762bd177f968aa210396eeb2414e6e59362dc47·...·]s·==========================\n</code></pre>",
960 ············"title":·"--inline-snapshot=report"960 ············"title":·"--inline-snapshot=report"
961 ········},961 ········},
962 ········{962 ········{
963 ············"location":·"pytest.html#-inline-snapshotreview",963 ············"location":·"pytest.html#-inline-snapshotreview",
964 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.0lr1jrhBLA\nplugins:·pytest_freezer-0.4.9,·subtests-0.13.1,·inline-snapshot-0.20.7,·time-machine-2.16.0,·mock-3.14.0,·hypothesis-6.127.4\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·2952,·SHA:·0bb108bd3530b9d9bf650e1b1faaf077bcb8e176450fe6f1c47dbd9112395837·...·]s·==========================\n</code></pre>",964 ············"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.2,·pytest-8.3.5,·pluggy-1.5.0\nrootdir:·/tmp/tmp.QPRBhh39n3\nplugins:·time-machine-2.16.0,·pytest_freezer-0.4.9,·inline-snapshot-0.20.7,·hypothesis-6.127.4,·subtests-0.13.1,·mock-3.14.0\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n\n===============[·...·truncated·by·diffoscope;·len:·2952,·SHA:·20b36af43e0b017dd2a99b445f380ea1c2f3909685be79a2c49f10b2e3407d4a·...·]s·==========================\n</code></pre>",
965 ············"title":·"--inline-snapshot=review"965 ············"title":·"--inline-snapshot=review"
966 ········},966 ········},
967 ········{967 ········{
968 ············"location":·"pytest.html#-inline-snapshotdisable",968 ············"location":·"pytest.html#-inline-snapshotdisable",
969 ············"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>",969 ············"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>",
970 ············"title":·"--inline-snapshot=disable"970 ············"title":·"--inline-snapshot=disable"
971 ········},971 ········},