15.7 KB
/srv/reproducible-results/rbuild-debian/r-b-build.dFXzOlpr/b1/python-inline-snapshot_0.29.1-1_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.dFXzOlpr/b2/python-inline-snapshot_0.29.1-1_arm64.changes
324 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·7bf5fec4cf57110c89d8d7fbdd2d44c1·787768·doc·optional·python-inline-snapshot-doc_0.29.1-1_all.deb1 ·36d318ab3389b58e327764fc478bb447·787748·doc·optional·python-inline-snapshot-doc_0.29.1-1_all.deb
2 ·db2b9b14160db2ab69239eb8c55a948f·53524·python·optional·python3-inline-snapshot_0.29.1-1_all.deb2 ·db2b9b14160db2ab69239eb8c55a948f·53524·python·optional·python3-inline-snapshot_0.29.1-1_all.deb
15.2 KB
python-inline-snapshot-doc_0.29.1-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-09-25·15:26:37.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-09-25·15:26:37.000000·debian-binary
2 -rw-r--r--···0········0········0·····3384·2025-09-25·15:26:37.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3384·2025-09-25·15:26:37.000000·control.tar.xz
3 -rw-r--r--···0········0········0···784192·2025-09-25·15:26:37.000000·data.tar.xz3 -rw-r--r--···0········0········0···784172·2025-09-25·15:26:37.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
14.7 KB
data.tar.xz
14.6 KB
data.tar
8.93 KB
./usr/share/doc/python-inline-snapshot-doc/html/pytest.html
    
Offset 1549, 47 lines modifiedOffset 1549, 47 lines modified
1549 <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>1549 <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>
1550 <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>1550 <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>
1551 </code></pre></div>1551 </code></pre></div>
1552 <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>1552 <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>
1553 <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>1553 <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>
1554 <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>1554 <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>
1555 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1555 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1556 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.ceplkDISzp</span>1556 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.PWhHo6x4mO</span>
1557 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1557 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1558 </code></pre></div>1558 </code></pre></div>
1559 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>1559 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>
1560 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>1560 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>
1561 <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>1561 <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>
1562 <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>1562 <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>
1563 <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>1563 <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>
1564 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1564 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1565 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.BhuwIrNb0c</span>1565 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.4X4zIJ2Gem</span>
1566 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1566 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1567 </code></pre></div>1567 </code></pre></div>
1568 <div·class="admonition·info">1568 <div·class="admonition·info">
1569 <p·class="admonition-title">Info</p>1569 <p·class="admonition-title">Info</p>
1570 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.1570 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.
1571 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>1571 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>
1572 </div>1572 </div>
1573 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>1573 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>
1574 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>1574 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>
1575 <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>1575 <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>
1576 <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>1576 <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>
1577 <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>1577 <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>
1578 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1578 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1579 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.zXIHmbUMb6</span>1579 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.eZQeMkZB0D</span>
1580 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1580 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1581 </code></pre></div>1581 </code></pre></div>
1582 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>1582 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>
1583 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>1583 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>
1584 <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>1584 <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>
1585 <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>1585 <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>
1586 <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>1586 <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>
1587 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>1587 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a><span·class="·-Color·-Color-Red">··inifile:·None</span>
1588 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.toXjAVKpXt</span>1588 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a><span·class="·-Color·-Color-Red">··rootdir:·/tmp/tmp.YFruVB1EGQ</span>
1589 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>1589 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>
1590 </code></pre></div>1590 </code></pre></div>
1591 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>1591 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>
1592 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>·and·inline-snapshot·will·not·be·able·to·fix·snapshots·or·to·generate·reports.1592 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>·and·inline-snapshot·will·not·be·able·to·fix·snapshots·or·to·generate·reports.
1593 This·can·be·used·if·you·think·that·snapshot·logic·causes·a·problem·in·your·tests.·It·is·also·the·default·for·CI·runs.</p>1593 This·can·be·used·if·you·think·that·snapshot·logic·causes·a·problem·in·your·tests.·It·is·also·the·default·for·CI·runs.</p>
1594 <div·class="admonition·info">1594 <div·class="admonition·info">
1595 <p·class="admonition-title">deprecation</p>1595 <p·class="admonition-title">deprecation</p>
2.33 KB
html2text {}
    
Offset 86, 43 lines modifiedOffset 86, 43 lines modified
86 def·test_something():86 def·test_something():
87 ····assert·1·==·snapshot()87 ····assert·1·==·snapshot()
88 ····assert·2·<=·snapshot(5)88 ····assert·2·<=·snapshot(5)
89 >·pytest·test_something.py·--inline-snapshot=create,report89 >·pytest·test_something.py·--inline-snapshot=create,report
90 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]90 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]
91 pytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report91 pytest:·error:·unrecognized·arguments:·--inline-snapshot=create,report
92 ··inifile:·None92 ··inifile:·None
93 ··rootdir:·/tmp/tmp.ceplkDISzp93 ··rootdir:·/tmp/tmp.PWhHo6x4mO
  
94 *\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*94 *\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*
95 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots95 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots
96 >·pytest·test_something.py·--inline-snapshot=short-report96 >·pytest·test_something.py·--inline-snapshot=short-report
97 ERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]97 ERROR:·usage:·__main__.py·[options]·[file_or_dir]·[file_or_dir]·[...]
98 __main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report98 __main__.py:·error:·unrecognized·arguments:·--inline-snapshot=short-report
99 ··inifile:·None99 ··inifile:·None
100 ··rootdir:·/tmp/tmp.BhuwIrNb0c100 ··rootdir:·/tmp/tmp.4X4zIJ2Gem
  
101 Info101 Info
102 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled102 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled
103 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this103 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this
104 restriction·is·lifted.104 restriction·is·lifted.
105 *\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*105 *\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*
106 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots106 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots
107 >·pytest·test_something.py·--inline-snapshot=report107 >·pytest·test_something.py·--inline-snapshot=report
108 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]108 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]
109 pytest:·error:·unrecognized·arguments:·--inline-snapshot=report109 pytest:·error:·unrecognized·arguments:·--inline-snapshot=report
110 ··inifile:·None110 ··inifile:·None
111 ··rootdir:·/tmp/tmp.zXIHmbUMb6111 ··rootdir:·/tmp/tmp.eZQeMkZB0D
  
112 *\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*112 *\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*
113 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes113 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes
114 >·pytest·test_something.py·--inline-snapshot=review114 >·pytest·test_something.py·--inline-snapshot=review
115 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]115 ERROR:·usage:·pytest·[options]·[file_or_dir]·[file_or_dir]·[...]
116 pytest:·error:·unrecognized·arguments:·--inline-snapshot=review116 pytest:·error:·unrecognized·arguments:·--inline-snapshot=review
117 ··inifile:·None117 ··inifile:·None
118 ··rootdir:·/tmp/tmp.toXjAVKpXt118 ··rootdir:·/tmp/tmp.YFruVB1EGQ
  
119 *\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*119 *\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*
120 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x·and·inline-120 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x·and·inline-
121 snapshot·will·not·be·able·to·fix·snapshots·or·to·generate·reports.·This·can·be121 snapshot·will·not·be·able·to·fix·snapshots·or·to·generate·reports.·This·can·be
122 used·if·you·think·that·snapshot·logic·causes·a·problem·in·your·tests.·It·is122 used·if·you·think·that·snapshot·logic·causes·a·problem·in·your·tests.·It·is
123 also·the·default·for·CI·runs.123 also·the·default·for·CI·runs.
124 deprecation124 deprecation
5.69 KB
./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json
5.55 KB
Pretty-printed
    
Offset 1272, 30 lines modifiedOffset 1272, 30 lines modified
1272 ········{1272 ········{
1273 ············"location":·"pytest.html",1273 ············"location":·"pytest.html",
1274 ············"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>",1274 ············"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>",
1275 ············"title":·"pytest·integration"1275 ············"title":·"pytest·integration"
1276 ········},1276 ········},
1277 ········{1277 ········{
1278 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",1278 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",
1279 ············"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.ceplkDISzp\n\n</code></pre>",1279 ············"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.PWhHo6x4mO\n\n</code></pre>",
1280 ············"title":·"--inline-snapshot=create,fix,trim,update"1280 ············"title":·"--inline-snapshot=create,fix,trim,update"
1281 ········},1281 ········},
1282 ········{1282 ········{
1283 ············"location":·"pytest.html#-inline-snapshotshort-report",1283 ············"location":·"pytest.html#-inline-snapshotshort-report",
1284 ············"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.BhuwIrNb0c\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>",1284 ············"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.4X4zIJ2Gem\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>",
1285 ············"title":·"--inline-snapshot=short-report"1285 ············"title":·"--inline-snapshot=short-report"
1286 ········},1286 ········},
1287 ········{1287 ········{
1288 ············"location":·"pytest.html#-inline-snapshotreport",1288 ············"location":·"pytest.html#-inline-snapshotreport",
1289 ············"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.zXIHmbUMb6\n\n</code></pre>",1289 ············"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.eZQeMkZB0D\n\n</code></pre>",
1290 ············"title":·"--inline-snapshot=report"1290 ············"title":·"--inline-snapshot=report"
1291 ········},1291 ········},
1292 ········{1292 ········{
1293 ············"location":·"pytest.html#-inline-snapshotreview",1293 ············"location":·"pytest.html#-inline-snapshotreview",
1294 ············"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.toXjAVKpXt\n\n</code></pre>",1294 ············"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.YFruVB1EGQ\n\n</code></pre>",
1295 ············"title":·"--inline-snapshot=review"1295 ············"title":·"--inline-snapshot=review"
1296 ········},1296 ········},
1297 ········{1297 ········{
1298 ············"location":·"pytest.html#-inline-snapshotdisable",1298 ············"location":·"pytest.html#-inline-snapshotdisable",
1299 ············"text":·"<p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>·and·inline-snapshot·will·not·be·able·to·fix·snapshots·or·to·generate·reports.·This·can·be·used·if·you·think·that·snapshot·logic·causes·a·problem·in·your·tests.·It·is·also·the·default·for·CI·runs.</p>·<p>deprecation</p>·<p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>",1299 ············"text":·"<p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>·and·inline-snapshot·will·not·be·able·to·fix·snapshots·or·to·generate·reports.·This·can·be·used·if·you·think·that·snapshot·logic·causes·a·problem·in·your·tests.·It·is·also·the·default·for·CI·runs.</p>·<p>deprecation</p>·<p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>",
1300 ············"title":·"--inline-snapshot=disable"1300 ············"title":·"--inline-snapshot=disable"
1301 ········},1301 ········},