16.1 KB
/srv/reproducible-results/rbuild-debian/r-b-build.W5DDnM9l/b1/python-inline-snapshot_0.23.2-1_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.W5DDnM9l/b2/python-inline-snapshot_0.23.2-1_arm64.changes
324 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·8e47508f8218424f14e301421a2b1793·707044·doc·optional·python-inline-snapshot-doc_0.23.2-1_all.deb1 ·8c2650015dc6b2949aa80472d69c16b4·707040·doc·optional·python-inline-snapshot-doc_0.23.2-1_all.deb
2 ·3ca8cdc29d570944d716a7a3084739c2·41540·python·optional·python3-inline-snapshot_0.23.2-1_all.deb2 ·3ca8cdc29d570944d716a7a3084739c2·41540·python·optional·python3-inline-snapshot_0.23.2-1_all.deb
15.6 KB
python-inline-snapshot-doc_0.23.2-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-06-05·17:27:54.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-06-05·17:27:54.000000·debian-binary
2 -rw-r--r--···0········0········0·····3156·2025-06-05·17:27:54.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3156·2025-06-05·17:27:54.000000·control.tar.xz
3 -rw-r--r--···0········0········0···703696·2025-06-05·17:27:54.000000·data.tar.xz3 -rw-r--r--···0········0········0···703692·2025-06-05·17:27:54.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
15.1 KB
data.tar.xz
15.0 KB
data.tar
8.85 KB
./usr/share/doc/python-inline-snapshot-doc/html/pytest.html
    
Offset 1267, 47 lines modifiedOffset 1267, 47 lines modified
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-Red">ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]</span>1271 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]</span>
1272 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">pytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report</span>1272 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">pytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report</span>
1273 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1273 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1274 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.gpGZPemt0n</span>1274 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.85LV3vz6oS</span>
1275 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1275 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1276 </code></pre></div>1276 </code></pre></div>
1277 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>1277 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>
1278 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>1278 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>
1279 <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>1279 <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>
1280 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]</span>1280 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]</span>
1281 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">__main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report</span>1281 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">__main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report</span>
1282 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1282 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1283 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.xiBGdocO7l</span>1283 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.WyERaltpJS</span>
1284 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1284 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1285 </code></pre></div>1285 </code></pre></div>
1286 <div·class="admonition·info">1286 <div·class="admonition·info">
1287 <p·class="admonition-title">Info</p>1287 <p·class="admonition-title">Info</p>
1288 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.1288 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.
1289 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>1289 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>
1290 </div>1290 </div>
1291 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>1291 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>
1292 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>1292 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>
1293 <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>1293 <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>
1294 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]</span>1294 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]</span>
1295 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">pytest:·error:·unrecognized·arguments:·--inline-snapshot=report</span>1295 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">pytest:·error:·unrecognized·arguments:·--inline-snapshot=report</span>
1296 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1296 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1297 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.jMihguroTb</span>1297 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.IuCjbZMr7z</span>
1298 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1298 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1299 </code></pre></div>1299 </code></pre></div>
1300 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>1300 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>
1301 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>1301 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>
1302 <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>1302 <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>
1303 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]</span>1303 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Red">ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]</span>
1304 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">pytest:·error:·unrecognized·arguments:·--inline-snapshot=review</span>1304 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a><span·class="·-Color·-Color-Red">pytest:·error:·unrecognized·arguments:·--inline-snapshot=review</span>
1305 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1305 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1306 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.BbK3XyT2i4</span>1306 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.8Kf3BylAha</span>
1307 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1307 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1308 </code></pre></div>1308 </code></pre></div>
1309 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>1309 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>
1310 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.1310 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.
1311 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>1311 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>
1312 <div·class="admonition·info">1312 <div·class="admonition·info">
1313 <p·class="admonition-title">deprecation</p>1313 <p·class="admonition-title">deprecation</p>
2.32 KB
html2text {}
    
Offset 77, 43 lines modifiedOffset 77, 43 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 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]81 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]
82 pytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report82 pytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report
83 ··inifile:·None83 ··inifile:·None
84 ··rootdir:·/tmp/tmp.gpGZPemt0n84 ··rootdir:·/tmp/tmp.85LV3vz6oS
  
85 *\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*85 *\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*
86 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots86 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots
87 >·pytest·test_something.py·--inline-snapshot=short-report87 >·pytest·test_something.py·--inline-snapshot=short-report
88 ERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]88 ERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]
89 __main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report89 __main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report
90 ··inifile:·None90 ··inifile:·None
91 ··rootdir:·/tmp/tmp.xiBGdocO7l91 ··rootdir:·/tmp/tmp.WyERaltpJS
  
92 Info92 Info
93 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled93 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled
94 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this94 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this
95 restriction·is·lifted.95 restriction·is·lifted.
96 *\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*96 *\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*
97 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots97 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots
98 >·pytest·test_something.py·--inline-snapshot=report98 >·pytest·test_something.py·--inline-snapshot=report
99 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]99 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]
100 pytest:·error:·unrecognized·arguments:·--inline-snapshot=report100 pytest:·error:·unrecognized·arguments:·--inline-snapshot=report
101 ··inifile:·None101 ··inifile:·None
102 ··rootdir:·/tmp/tmp.jMihguroTb102 ··rootdir:·/tmp/tmp.IuCjbZMr7z
  
103 *\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*103 *\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*
104 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes104 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes
105 >·pytest·test_something.py·--inline-snapshot=review105 >·pytest·test_something.py·--inline-snapshot=review
106 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]106 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]
107 pytest:·error:·unrecognized·arguments:·--inline-snapshot=review107 pytest:·error:·unrecognized·arguments:·--inline-snapshot=review
108 ··inifile:·None108 ··inifile:·None
109 ··rootdir:·/tmp/tmp.BbK3XyT2i4109 ··rootdir:·/tmp/tmp.8Kf3BylAha
  
110 *\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*110 *\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*
111 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be111 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be
112 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,112 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,
113 or·if·you·want·to·speedup·your·CI.113 or·if·you·want·to·speedup·your·CI.
114 deprecation114 deprecation
115 This·option·was·previously·called·--inline-snapshot-disable115 This·option·was·previously·called·--inline-snapshot-disable
6.17 KB
./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json
6.03 KB
Pretty-printed
Similarity: 0.9993084370677732% Differences: {"'docs'": "{225: {'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\\nERROR: usage: pytest [options] [file_or_dir] ' '[file_or_dir] [...] […]
    
Offset 1132, 30 lines modifiedOffset 1132, 30 lines modified
1132 ········{1132 ········{
1133 ············"location":·"pytest.html",1133 ············"location":·"pytest.html",
1134 ············"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>",1134 ············"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>",
1135 ············"title":·"pytest·integration"1135 ············"title":·"pytest·integration"
1136 ········},1136 ········},
1137 ········{1137 ········{
1138 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",1138 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",
1139 ············"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\nERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]\npytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report\n··inifile:·None\n··rootdir:·/tmp/tmp.gpGZPemt0n\n\n</code></pre>",1139 ············"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\nERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]\npytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report\n··inifile:·None\n··rootdir:·/tmp/tmp.85LV3vz6oS\n\n</code></pre>",
1140 ············"title":·"--inline-snapshot=create,fix,trim,update"1140 ············"title":·"--inline-snapshot=create,fix,trim,update"
1141 ········},1141 ········},
1142 ········{1142 ········{
1143 ············"location":·"pytest.html#-inline-snapshotshort-report",1143 ············"location":·"pytest.html#-inline-snapshotshort-report",
1144 ············"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\nERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]\n__main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report\n··inifile:·None\n··rootdir:·/tmp/tmp.xiBGdocO7l\n\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>",1144 ············"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\nERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]\n__main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report\n··inifile:·None\n··rootdir:·/tmp/tmp.WyERaltpJS\n\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>",
1145 ············"title":·"--inline-snapshot=short-report"1145 ············"title":·"--inline-snapshot=short-report"
1146 ········},1146 ········},
1147 ········{1147 ········{
1148 ············"location":·"pytest.html#-inline-snapshotreport",1148 ············"location":·"pytest.html#-inline-snapshotreport",
1149 ············"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\nERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]\npytest:·error:·unrecognized·arguments:·--inline-snapshot=report\n··inifile:·None\n··rootdir:·/tmp/tmp.jMihguroTb\n\n</code></pre>",1149 ············"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\nERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]\npytest:·error:·unrecognized·arguments:·--inline-snapshot=report\n··inifile:·None\n··rootdir:·/tmp/tmp.IuCjbZMr7z\n\n</code></pre>",
1150 ············"title":·"--inline-snapshot=report"1150 ············"title":·"--inline-snapshot=report"
1151 ········},1151 ········},
1152 ········{1152 ········{
1153 ············"location":·"pytest.html#-inline-snapshotreview",1153 ············"location":·"pytest.html#-inline-snapshotreview",
1154 ············"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\nERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]\npytest:·error:·unrecognized·arguments:·--inline-snapshot=review\n··inifile:·None\n··rootdir:·/tmp/tmp.BbK3XyT2i4\n\n</code></pre>",1154 ············"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\nERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]\npytest:·error:·unrecognized·arguments:·--inline-snapshot=review\n··inifile:·None\n··rootdir:·/tmp/tmp.8Kf3BylAha\n\n</code></pre>",
1155 ············"title":·"--inline-snapshot=review"1155 ············"title":·"--inline-snapshot=review"
1156 ········},1156 ········},
1157 ········{1157 ········{
1158 ············"location":·"pytest.html#-inline-snapshotdisable",1158 ············"location":·"pytest.html#-inline-snapshotdisable",
1159 ············"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>",1159 ············"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>",
1160 ············"title":·"--inline-snapshot=disable"1160 ············"title":·"--inline-snapshot=disable"
1161 ········},1161 ········},