48.7 KB
/srv/reproducible-results/rbuild-debian/r-b-build.1bdpTsa4/b1/python-inline-snapshot_0.19.3-1_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.1bdpTsa4/b2/python-inline-snapshot_0.19.3-1_arm64.changes
324 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·136ff1e0d6fc40975f1b57637532f8c3·535652·doc·optional·python-inline-snapshot-doc_0.19.3-1_all.deb1 ·80a8eea816d4ec220217fdc6167f8d98·535660·doc·optional·python-inline-snapshot-doc_0.19.3-1_all.deb
2 ·3ddbc791df9158261eb361c3e0c89846·36476·python·optional·python3-inline-snapshot_0.19.3-1_all.deb2 ·3ddbc791df9158261eb361c3e0c89846·36476·python·optional·python3-inline-snapshot_0.19.3-1_all.deb
48.2 KB
python-inline-snapshot-doc_0.19.3-1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-01-16·17:36:51.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-01-16·17:36:51.000000·debian-binary
2 -rw-r--r--···0········0········0·····3020·2025-01-16·17:36:51.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3020·2025-01-16·17:36:51.000000·control.tar.xz
3 -rw-r--r--···0········0········0···532440·2025-01-16·17:36:51.000000·data.tar.xz3 -rw-r--r--···0········0········0···532448·2025-01-16·17:36:51.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
47.6 KB
data.tar.xz
47.6 KB
data.tar
21.5 KB
./usr/share/doc/python-inline-snapshot-doc/html/pytest.html
    
Offset 969, 15 lines modifiedOffset 969, 15 lines modified
969 <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>969 <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>
970 <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>970 <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>
971 <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>971 <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>
972 </code></pre></div>972 </code></pre></div>
973 <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>973 <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>
974 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>974 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
975 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0975 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
976 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.GQwL6NRJcW976 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.pzB9WmQVut
977 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1977 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
978 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item978 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
979 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>979 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
980 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·<span·class="·-Color·-Color-Green">.······················································[100%]</span>980 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·<span·class="·-Color·-Color-Green">.······················································[100%]</span>
981 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================981 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================
982 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────982 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
983 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+983 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1003, 22 lines modifiedOffset 1003, 22 lines modified
1003 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|1003 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|
1004 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>+------------------------------------------------------------------------------+1004 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>+------------------------------------------------------------------------------+
1005 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>These·changes·are·not·applied.1005 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>These·changes·are·not·applied.
1006 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with·1006 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with·
1007 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>--inline-snapshot=review1007 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>--inline-snapshot=review
1008 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>1008 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>
1009 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a>1009 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a>
1010 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a><span·class="·-Color·-Color-Green">==============================·</span><span·class="·-Color·-Color-Bold·-Color-Bold-Green">1·passed</span><span·class="·-Color·-Color-Green">·in·0.54s·===============================</span>1010 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a><span·class="·-Color·-Color-Green">==============================·</span><span·class="·-Color·-Color-Bold·-Color-Bold-Green">1·passed</span><span·class="·-Color·-Color-Green">·in·0.24s·===============================</span>
1011 </code></pre></div>1011 </code></pre></div>
1012 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>1012 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>
1013 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>1013 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>
1014 <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>1014 <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>
1015 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1015 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1016 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.01016 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
1017 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.xTwZEQScdr1017 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.NKF2rq2X4L
1018 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.11018 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
1019 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1019 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1020 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1020 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1021 <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>1021 <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>
1022 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1022 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1023 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1023 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1024 <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>1024 <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>
Offset 1026, 27 lines modifiedOffset 1026, 27 lines modified
1026 <a·id="__codelineno-0-13"·name="__codelineno-0-13"·href="#__codelineno-0-13"></a>===============================·inline·snapshot·================================1026 <a·id="__codelineno-0-13"·name="__codelineno-0-13"·href="#__codelineno-0-13"></a>===============================·inline·snapshot·================================
1027 <a·id="__codelineno-0-14"·name="__codelineno-0-14"·href="#__codelineno-0-14"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)1027 <a·id="__codelineno-0-14"·name="__codelineno-0-14"·href="#__codelineno-0-14"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)
1028 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)1028 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)
1029 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>1029 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>
1030 <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·interactively1030 <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
1031 <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>1031 <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>
1032 <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.1032 <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.
1033 <a·id="__codelineno-0-20"·name="__codelineno-0-20"·href="#__codelineno-0-20"></a><span·class="·-Color·-Color-Red">==========================·</span><span·class="·-Color·-Color-Green">1·passed</span>,·<span·class="·-Color·-Color-Bold·-Color-Bold-Red">1·error</span><span·class="·-Color·-Color-Red">·in·0.47s·==========================</span>1033 <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.21s·==========================</span>
1034 </code></pre></div>1034 </code></pre></div>
1035 <div·class="admonition·info">1035 <div·class="admonition·info">
1036 <p·class="admonition-title">Info</p>1036 <p·class="admonition-title">Info</p>
1037 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.1037 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.
1038 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>1038 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>
1039 </div>1039 </div>
1040 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>1040 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>
1041 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>1041 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>
1042 <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>1042 <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>
1043 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1043 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1044 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.01044 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
1045 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.J0PhICwnTo1045 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.fqilARFinq
1046 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.11046 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
1047 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1047 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1048 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1048 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1049 <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>1049 <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>
1050 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1050 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1051 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1051 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1052 <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>1052 <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>
Offset 1079, 22 lines modifiedOffset 1079, 22 lines modified
1079 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+1079 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+
1080 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>These·changes·are·not·applied.1080 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>These·changes·are·not·applied.
1081 <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·1081 <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·
1082 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>--inline-snapshot=review1082 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>--inline-snapshot=review
1083 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>1083 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>
1084 <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>1084 <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>
1085 <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.1085 <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.
1086 <a·id="__codelineno-0-45"·name="__codelineno-0-45"·href="#__codelineno-0-45"></a><span·class="·-Color·-Color-Red">==========================·</span><span·class="·-Color·-Color-Green">1·passed</span>,·<span·class="·-Color·-Color-Bold·-Color-Bold-Red">1·error</span><span·class="·-Color·-Color-Red">·in·0.47s·==========================</span>1086 <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.22s·==========================</span>
1087 </code></pre></div>1087 </code></pre></div>
1088 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>1088 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>
1089 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>1089 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>
1090 <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>1090 <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>
1091 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>1091 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a><span·class="·-Color·-Color-Bold">=============================·test·session·starts·==============================</span>
1092 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.01092 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
1093 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.WN6HAbMbmc1093 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.bAZN3K4e92
1094 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.11094 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
1095 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1095 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1096 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1096 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1097 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·<span·class="·-Color·-Color-Green">.······················································[100%]</span>1097 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·<span·class="·-Color·-Color-Green">.······················································[100%]</span>
1098 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================1098 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================
1099 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────1099 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
1100 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+1100 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1116, 15 lines modifiedOffset 1116, 15 lines modified
1116 <a·id="__codelineno-0-27"·name="__codelineno-0-27"·href="#__codelineno-0-27"></a>|··def·test_something():·······················································|1116 <a·id="__codelineno-0-27"·name="__codelineno-0-27"·href="#__codelineno-0-27"></a>|··def·test_something():·······················································|
1117 <a·id="__codelineno-0-28"·name="__codelineno-0-28"·href="#__codelineno-0-28"></a>|······assert·1·==·snapshot(1)·················································|1117 <a·id="__codelineno-0-28"·name="__codelineno-0-28"·href="#__codelineno-0-28"></a>|······assert·1·==·snapshot(1)·················································|
1118 <a·id="__codelineno-0-29"·name="__codelineno-0-29"·href="#__codelineno-0-29"></a>|·-····assert·2·&lt;=·snapshot(5)·················································|1118 <a·id="__codelineno-0-29"·name="__codelineno-0-29"·href="#__codelineno-0-29"></a>|·-····assert·2·&lt;=·snapshot(5)·················································|
1119 <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|1119 <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|
1120 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>+------------------------------------------------------------------------------+1120 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>+------------------------------------------------------------------------------+
1121 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>do·you·want·to·trim·these·snapshots?·[y/n]·(n):·1121 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>do·you·want·to·trim·these·snapshots?·[y/n]·(n):·
1122 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>1122 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>
1123 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a><span·class="·-Color·-Color-Green">==============================·</span><span·class="·-Color·-Color-Bold·-Color-Bold-Green">1·passed</span><span·class="·-Color·-Color-Green">·in·0.52s·===============================</span>1123 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a><span·class="·-Color·-Color-Green">==============================·</span><span·class="·-Color·-Color-Bold·-Color-Bold-Green">1·passed</span><span·class="·-Color·-Color-Green">·in·0.23s·===============================</span>
1124 </code></pre></div>1124 </code></pre></div>
1125 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>1125 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>
1126 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.1126 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.
1127 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>1127 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>
1128 <div·class="admonition·info">1128 <div·class="admonition·info">
1129 <p·class="admonition-title">deprecation</p>1129 <p·class="admonition-title">deprecation</p>
1130 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>1130 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>
5.05 KB
html2text {}
    
Offset 66, 15 lines modifiedOffset 66, 15 lines modified
66 def·test_something():66 def·test_something():
67 ····assert·1·==·snapshot()67 ····assert·1·==·snapshot()
68 ····assert·2·<=·snapshot(5)68 ····assert·2·<=·snapshot(5)
69 >·pytest·test_something.py·--inline-snapshot=create,report69 >·pytest·test_something.py·--inline-snapshot=create,report
70 =============================·test·session·starts70 =============================·test·session·starts
71 ==============================71 ==============================
72 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.072 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
73 rootdir:·/tmp/tmp.GQwL6NRJcW73 rootdir:·/tmp/tmp.pzB9WmQVut
74 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-74 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-
75 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.175 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
76 collected·1·item76 collected·1·item
  
77 test_something.py·.······················································[100%]77 test_something.py·.······················································[100%]
78 ===============================·inline·snapshot78 ===============================·inline·snapshot
79 ================================79 ================================
Offset 123, 23 lines modifiedOffset 123, 23 lines modified
123 +------------------------------------------------------------------------------123 +------------------------------------------------------------------------------
124 +124 +
125 These·changes·are·not·applied.125 These·changes·are·not·applied.
126 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with126 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with
127 --inline-snapshot=review127 --inline-snapshot=review
  
  
128 ==============================·1·passed·in·0.54s128 ==============================·1·passed·in·0.24s
129 ===============================129 ===============================
130 *\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*130 *\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*
131 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots131 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots
132 >·pytest·test_something.py·--inline-snapshot=short-report132 >·pytest·test_something.py·--inline-snapshot=short-report
133 =============================·test·session·starts133 =============================·test·session·starts
134 ==============================134 ==============================
135 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0135 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
136 rootdir:·/tmp/tmp.xTwZEQScdr136 rootdir:·/tmp/tmp.NKF2rq2X4L
137 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-137 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-
138 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1138 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
139 collected·1·item139 collected·1·item
  
140 test_something.py·.E·····················································[100%]140 test_something.py·.E·····················································[100%]
  
141 ====================================·ERRORS141 ====================================·ERRORS
Offset 153, 27 lines modifiedOffset 153, 27 lines modified
153 Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)153 Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)
  
154 You·can·also·use·--inline-snapshot=review·to·approve·the·changes·interactively154 You·can·also·use·--inline-snapshot=review·to·approve·the·changes·interactively
155 ===========================·short·test·summary·info155 ===========================·short·test·summary·info
156 ============================156 ============================
157 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one157 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
158 value.158 value.
159 ==========================·1·passed,·1·error·in·0.47s159 ==========================·1·passed,·1·error·in·0.21s
160 ==========================160 ==========================
161 Info161 Info
162 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled162 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled
163 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this163 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this
164 restriction·is·lifted.164 restriction·is·lifted.
165 *\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*165 *\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*
166 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots166 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots
167 >·pytest·test_something.py·--inline-snapshot=report167 >·pytest·test_something.py·--inline-snapshot=report
168 =============================·test·session·starts168 =============================·test·session·starts
169 ==============================169 ==============================
170 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0170 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
171 rootdir:·/tmp/tmp.J0PhICwnTo171 rootdir:·/tmp/tmp.fqilARFinq
172 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-172 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-
173 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1173 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
174 collected·1·item174 collected·1·item
  
175 test_something.py·.E·····················································[100%]175 test_something.py·.E·····················································[100%]
  
176 ====================================·ERRORS176 ====================================·ERRORS
Offset 233, 23 lines modifiedOffset 233, 23 lines modified
233 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with233 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with
234 --inline-snapshot=review234 --inline-snapshot=review
  
235 ===========================·short·test·summary·info235 ===========================·short·test·summary·info
236 ============================236 ============================
237 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one237 ERROR·test_something.py::test_something·-·Failed:·your·snapshot·is·missing·one
238 value.238 value.
239 ==========================·1·passed,·1·error·in·0.47s239 ==========================·1·passed,·1·error·in·0.22s
240 ==========================240 ==========================
241 *\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*241 *\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*
242 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes242 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes
243 >·pytest·test_something.py·--inline-snapshot=review243 >·pytest·test_something.py·--inline-snapshot=review
244 =============================·test·session·starts244 =============================·test·session·starts
245 ==============================245 ==============================
246 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0246 platform·linux·--·Python·3.12.8,·pytest-8.3.4,·pluggy-1.5.0
247 rootdir:·/tmp/tmp.WN6HAbMbmc247 rootdir:·/tmp/tmp.bAZN3K4e92
248 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-248 plugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-
249 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1249 0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1
250 collected·1·item250 collected·1·item
  
251 test_something.py·.······················································[100%]251 test_something.py·.······················································[100%]
252 ===============================·inline·snapshot252 ===============================·inline·snapshot
253 ================================253 ================================
Offset 294, 15 lines modifiedOffset 294, 15 lines modified
294 |294 |
295 |·+····assert·2·<=·snapshot(2)295 |·+····assert·2·<=·snapshot(2)
296 |296 |
297 +------------------------------------------------------------------------------297 +------------------------------------------------------------------------------
298 +298 +
299 do·you·want·to·trim·these·snapshots?·[y/n]·(n):299 do·you·want·to·trim·these·snapshots?·[y/n]·(n):
  
300 ==============================·1·passed·in·0.52s300 ==============================·1·passed·in·0.23s
301 ===============================301 ===============================
302 *\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*302 *\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*
303 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be303 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be
304 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,304 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,
305 or·if·you·want·to·speedup·your·CI.305 or·if·you·want·to·speedup·your·CI.
306 deprecation306 deprecation
307 This·option·was·previously·called·--inline-snapshot-disable307 This·option·was·previously·called·--inline-snapshot-disable
26.1 KB
./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json
26.0 KB
Pretty-printed
Similarity: 0.9991039426523298% Differences: {"'docs'": "{170: {'text': '<p>Approve the changes of the given category. These flags can be " 'combined with report and review.</p> test_something.py<pre><code>from inline_snapshot ' 'import snapshot\\n\\n\\ndef test_something():\\n assert 1 == snapshot()\\n ' 'assert 2 &lt;= snapshot(5)\\n</code></pre> <pre><code>&gt; pytest test_something.py ' '--inline-snapshot=create,report\\n============================= test session starts ' '============== […]
    
Offset 857, 30 lines modifiedOffset 857, 30 lines modified
857 ········{857 ········{
858 ············"location":·"pytest.html",858 ············"location":·"pytest.html",
859 ············"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>",859 ············"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>",
860 ············"title":·"pytest·integration"860 ············"title":·"pytest·integration"
861 ········},861 ········},
862 ········{862 ········{
863 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",863 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",
864 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.GQwL6NRJcW\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.······················································[100%]\n[·...·truncated·by·diffoscope;·len:·2704,·SHA:·6e83f5db21ac6791d6ea089526cd20fe3f574bc508f2b293d7f8fa31c83dfa96·...·]4s·===============================\n</code></pre>",864 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.pzB9WmQVut\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.······················································[100%]\n[·...·truncated·by·diffoscope;·len:·2704,·SHA:·08b0191763bd2f813ed2222f90b8261c9f489a182116f768340af279755bf639·...·]4s·===============================\n</code></pre>",
865 ············"title":·"--inline-snapshot=create,fix,trim,update"865 ············"title":·"--inline-snapshot=create,fix,trim,update"
866 ········},866 ········},
867 ········{867 ········{
868 ············"location":·"pytest.html#-inline-snapshotshort-report",868 ············"location":·"pytest.html#-inline-snapshotshort-report",
869 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.xTwZEQScdr\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n[·...·truncated·by·diffoscope;·len:·715,·SHA:·4d2bc4c371ccec810ef1e08527507ea0e1354ede164b8a60302c85cdfbab606d·...·]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>",869 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.NKF2rq2X4L\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n[·...·truncated·by·diffoscope;·len:·715,·SHA:·b6d6c594f26790f62a2b82688bc80eeffbb11f8eb8802cf540481dbedf6f03c1·...·]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>",
870 ············"title":·"--inline-snapshot=short-report"870 ············"title":·"--inline-snapshot=short-report"
871 ········},871 ········},
872 ········{872 ········{
873 ············"location":·"pytest.html#-inline-snapshotreport",873 ············"location":·"pytest.html#-inline-snapshotreport",
874 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.J0PhICwnTo\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n[·...·truncated·by·diffoscope;·len:·3143,·SHA:·86bc643b86c16a9f23f14651794c368542d65c53054bce89faec65f09b06a197·...·]s·==========================\n</code></pre>",874 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.fqilARFinq\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.E·····················································[100%]\n[·...·truncated·by·diffoscope;·len:·3143,·SHA:·f0b7eced0e651d1ea9676c2242b06cd4279e2bdbd13febf81465bf79914851cb·...·]s·==========================\n</code></pre>",
875 ············"title":·"--inline-snapshot=report"875 ············"title":·"--inline-snapshot=report"
876 ········},876 ········},
877 ········{877 ········{
878 ············"location":·"pytest.html#-inline-snapshotreview",878 ············"location":·"pytest.html#-inline-snapshotreview",
879 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.WN6HAbMbmc\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.······················································[100%]\n[·...·truncated·by·diffoscope;·len:·2594,·SHA:·fe16ccad6735e3c22c559f58a3d6512f5f9268d6061037166d4d62ae2ee96939·...·]s·===============================\n</code></pre>",879 ············"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.12.8,·pytest-8.3.4,·pluggy-1.5.0\nrootdir:·/tmp/tmp.bAZN3K4e92\nplugins:·time-machine-2.16.0,·subtests-0.13.1,·mock-3.14.0,·pytest_freezer-0.4.9,·inline-snapshot-0.19.3,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·.······················································[100%]\n[·...·truncated·by·diffoscope;·len:·2594,·SHA:·2c883c7627beb9dcdd6055ce8d9bee0429aa7c1e32eff24ffd0d63e3e2cb1c6d·...·]s·===============================\n</code></pre>",
880 ············"title":·"--inline-snapshot=review"880 ············"title":·"--inline-snapshot=review"
881 ········},881 ········},
882 ········{882 ········{
883 ············"location":·"pytest.html#-inline-snapshotdisable",883 ············"location":·"pytest.html#-inline-snapshotdisable",
884 ············"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>",884 ············"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>",
885 ············"title":·"--inline-snapshot=disable"885 ············"title":·"--inline-snapshot=disable"
886 ········},886 ········},