48.6 KB
/srv/reproducible-results/rbuild-debian/r-b-build.psPzcqC8/b1/python-inline-snapshot_0.14.0-2_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.psPzcqC8/b2/python-inline-snapshot_0.14.0-2_arm64.changes
324 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·456cb3b0b6925b90291ecdd98dfbd6a2·655936·doc·optional·python-inline-snapshot-doc_0.14.0-2_all.deb1 ·bd0eaf288d6bf882d6e97fb344a46e0f·655940·doc·optional·python-inline-snapshot-doc_0.14.0-2_all.deb
2 ·50eecb26435368b0db18a0c41dbfb6b8·28220·python·optional·python3-inline-snapshot_0.14.0-2_all.deb2 ·50eecb26435368b0db18a0c41dbfb6b8·28220·python·optional·python3-inline-snapshot_0.14.0-2_all.deb
48.1 KB
python-inline-snapshot-doc_0.14.0-2_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2024-12-04·09:09:58.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-12-04·09:09:58.000000·debian-binary
2 -rw-r--r--···0········0········0·····3028·2024-12-04·09:09:58.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3028·2024-12-04·09:09:58.000000·control.tar.xz
3 -rw-r--r--···0········0········0···652716·2024-12-04·09:09:58.000000·data.tar.xz3 -rw-r--r--···0········0········0···652720·2024-12-04·09:09:58.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
19.6 KB
./usr/share/doc/python-inline-snapshot-doc/html/pytest.html
    
Offset 967, 15 lines modifiedOffset 967, 15 lines modified
967 <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>967 <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>
968 <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>968 <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>
969 <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>969 <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>
970 </code></pre></div>970 </code></pre></div>
971 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=create,report971 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=create,report
972 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m972 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m
973 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0973 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
974 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.cJ5ZIXZuFS974 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.55JkUgF7xo
975 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1975 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
976 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item976 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
977 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>977 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
978 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[32m······················································[100%]\x1b[0m978 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[32m······················································[100%]\x1b[0m
979 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================979 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================
980 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────980 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
981 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+981 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1001, 22 lines modifiedOffset 1001, 22 lines modified
1001 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|1001 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|
1002 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>+------------------------------------------------------------------------------+1002 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>+------------------------------------------------------------------------------+
1003 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>These·changes·are·not·applied.1003 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>These·changes·are·not·applied.
1004 <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·1004 <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·
1005 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>--inline-snapshot=review1005 <a·id="__codelineno-0-35"·name="__codelineno-0-35"·href="#__codelineno-0-35"></a>--inline-snapshot=review
1006 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>1006 <a·id="__codelineno-0-36"·name="__codelineno-0-36"·href="#__codelineno-0-36"></a>
1007 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a>1007 <a·id="__codelineno-0-37"·name="__codelineno-0-37"·href="#__codelineno-0-37"></a>
1008 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>\x1b[32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.13s\x1b[0m\x1b[32m·===============================\x1b[0m1008 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>\x1b[32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.25s\x1b[0m\x1b[32m·===============================\x1b[0m
1009 </code></pre></div>1009 </code></pre></div>
1010 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>1010 <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">&para;</a></h2>
1011 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>1011 <p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>
1012 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=short-report1012 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=short-report
1013 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m1013 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m
1014 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.01014 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
1015 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.5nmmmJlglG1015 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.wuzw7eb2yh
1016 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.11016 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
1017 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1017 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1018 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1018 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1019 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m·····················································[100%]\x1b[0m1019 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m·····················································[100%]\x1b[0m
1020 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1020 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1021 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1021 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1022 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>\x1b[31m\x1b[1m_____________________·ERROR·at·teardown·of·test_something·______________________\x1b[0m1022 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>\x1b[31m\x1b[1m_____________________·ERROR·at·teardown·of·test_something·______________________\x1b[0m
Offset 1024, 27 lines modifiedOffset 1024, 27 lines modified
1024 <a·id="__codelineno-0-13"·name="__codelineno-0-13"·href="#__codelineno-0-13"></a>===============================·inline·snapshot·================================1024 <a·id="__codelineno-0-13"·name="__codelineno-0-13"·href="#__codelineno-0-13"></a>===============================·inline·snapshot·================================
1025 <a·id="__codelineno-0-14"·name="__codelineno-0-14"·href="#__codelineno-0-14"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)1025 <a·id="__codelineno-0-14"·name="__codelineno-0-14"·href="#__codelineno-0-14"></a>Info:·one·snapshot·can·be·trimmed·(--inline-snapshot=trim)
1026 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)1026 <a·id="__codelineno-0-15"·name="__codelineno-0-15"·href="#__codelineno-0-15"></a>Error:·one·snapshot·is·missing·a·value·(--inline-snapshot=create)
1027 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>1027 <a·id="__codelineno-0-16"·name="__codelineno-0-16"·href="#__codelineno-0-16"></a>
1028 <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·interactively1028 <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
1029 <a·id="__codelineno-0-18"·name="__codelineno-0-18"·href="#__codelineno-0-18"></a>\x1b[36m\x1b[1m===========================·short·test·summary·info·============================\x1b[0m1029 <a·id="__codelineno-0-18"·name="__codelineno-0-18"·href="#__codelineno-0-18"></a>\x1b[36m\x1b[1m===========================·short·test·summary·info·============================\x1b[0m
1030 <a·id="__codelineno-0-19"·name="__codelineno-0-19"·href="#__codelineno-0-19"></a>\x1b[31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot·is·missing·one·value.1030 <a·id="__codelineno-0-19"·name="__codelineno-0-19"·href="#__codelineno-0-19"></a>\x1b[31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot·is·missing·one·value.
1031 <a·id="__codelineno-0-20"·name="__codelineno-0-20"·href="#__codelineno-0-20"></a>\x1b[31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in·0.14s\x1b[0m\x1b[31m·==========================\x1b[0m1031 <a·id="__codelineno-0-20"·name="__codelineno-0-20"·href="#__codelineno-0-20"></a>\x1b[31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in·0.31s\x1b[0m\x1b[31m·==========================\x1b[0m
1032 </code></pre></div>1032 </code></pre></div>
1033 <div·class="admonition·info">1033 <div·class="admonition·info">
1034 <p·class="admonition-title">Info</p>1034 <p·class="admonition-title">Info</p>
1035 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.1035 <p>short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled·pytest·assert-rewriting.
1036 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>1036 This·option·will·be·replaced·with·<em>report</em>·when·this·restriction·is·lifted.</p>
1037 </div>1037 </div>
1038 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>1038 <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">&para;</a></h2>
1039 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>1039 <p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>
1040 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=report1040 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=report
1041 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m1041 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m
1042 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.01042 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
1043 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.l1LR1EF9gv1043 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.cpwbZvuY0c
1044 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.11044 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
1045 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1045 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1046 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1046 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1047 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m·····················································[100%]\x1b[0m1047 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m·····················································[100%]\x1b[0m
1048 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>1048 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>
1049 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================1049 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>====================================·ERRORS·====================================
1050 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>\x1b[31m\x1b[1m_____________________·ERROR·at·teardown·of·test_something·______________________\x1b[0m1050 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>\x1b[31m\x1b[1m_____________________·ERROR·at·teardown·of·test_something·______________________\x1b[0m
Offset 1077, 22 lines modifiedOffset 1077, 22 lines modified
1077 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+1077 <a·id="__codelineno-0-38"·name="__codelineno-0-38"·href="#__codelineno-0-38"></a>+------------------------------------------------------------------------------+
1078 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>These·changes·are·not·applied.1078 <a·id="__codelineno-0-39"·name="__codelineno-0-39"·href="#__codelineno-0-39"></a>These·changes·are·not·applied.
1079 <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·1079 <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·
1080 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>--inline-snapshot=review1080 <a·id="__codelineno-0-41"·name="__codelineno-0-41"·href="#__codelineno-0-41"></a>--inline-snapshot=review
1081 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>1081 <a·id="__codelineno-0-42"·name="__codelineno-0-42"·href="#__codelineno-0-42"></a>
1082 <a·id="__codelineno-0-43"·name="__codelineno-0-43"·href="#__codelineno-0-43"></a>\x1b[36m\x1b[1m===========================·short·test·summary·info·============================\x1b[0m1082 <a·id="__codelineno-0-43"·name="__codelineno-0-43"·href="#__codelineno-0-43"></a>\x1b[36m\x1b[1m===========================·short·test·summary·info·============================\x1b[0m
1083 <a·id="__codelineno-0-44"·name="__codelineno-0-44"·href="#__codelineno-0-44"></a>\x1b[31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot·is·missing·one·value.1083 <a·id="__codelineno-0-44"·name="__codelineno-0-44"·href="#__codelineno-0-44"></a>\x1b[31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot·is·missing·one·value.
1084 <a·id="__codelineno-0-45"·name="__codelineno-0-45"·href="#__codelineno-0-45"></a>\x1b[31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in·0.15s\x1b[0m\x1b[31m·==========================\x1b[0m1084 <a·id="__codelineno-0-45"·name="__codelineno-0-45"·href="#__codelineno-0-45"></a>\x1b[31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in·0.18s\x1b[0m\x1b[31m·==========================\x1b[0m
1085 </code></pre></div>1085 </code></pre></div>
1086 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>1086 <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">&para;</a></h2>
1087 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>1087 <p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>
1088 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=review1088 <div·class="highlight"><pre><span></span><code><a·id="__codelineno-0-1"·name="__codelineno-0-1"·href="#__codelineno-0-1"></a>\x1b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=review
1089 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m1089 <a·id="__codelineno-0-2"·name="__codelineno-0-2"·href="#__codelineno-0-2"></a>\x1b[0m\x1b[1m=============================·test·session·starts·==============================\x1b[0m
1090 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.01090 <a·id="__codelineno-0-3"·name="__codelineno-0-3"·href="#__codelineno-0-3"></a>platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
1091 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.zV2aP2k2Hh1091 <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.MDQbIXE4hq
1092 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.11092 <a·id="__codelineno-0-5"·name="__codelineno-0-5"·href="#__codelineno-0-5"></a>plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
1093 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item1093 <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item
1094 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>1094 <a·id="__codelineno-0-7"·name="__codelineno-0-7"·href="#__codelineno-0-7"></a>
1095 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[32m······················································[100%]\x1b[0m1095 <a·id="__codelineno-0-8"·name="__codelineno-0-8"·href="#__codelineno-0-8"></a>test_something.py·\x1b[32m.\x1b[0m\x1b[32m······················································[100%]\x1b[0m
1096 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================1096 <a·id="__codelineno-0-9"·name="__codelineno-0-9"·href="#__codelineno-0-9"></a>===============================·inline·snapshot·================================
1097 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────1097 <a·id="__codelineno-0-10"·name="__codelineno-0-10"·href="#__codelineno-0-10"></a>───────────────────────────────·Create·snapshots·───────────────────────────────
1098 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+1098 <a·id="__codelineno-0-11"·name="__codelineno-0-11"·href="#__codelineno-0-11"></a>+-----------------------------·test_something.py·------------------------------+
Offset 1114, 15 lines modifiedOffset 1114, 15 lines modified
1114 <a·id="__codelineno-0-27"·name="__codelineno-0-27"·href="#__codelineno-0-27"></a>|··def·test_something():·······················································|1114 <a·id="__codelineno-0-27"·name="__codelineno-0-27"·href="#__codelineno-0-27"></a>|··def·test_something():·······················································|
1115 <a·id="__codelineno-0-28"·name="__codelineno-0-28"·href="#__codelineno-0-28"></a>|······assert·1·==·snapshot(1)·················································|1115 <a·id="__codelineno-0-28"·name="__codelineno-0-28"·href="#__codelineno-0-28"></a>|······assert·1·==·snapshot(1)·················································|
1116 <a·id="__codelineno-0-29"·name="__codelineno-0-29"·href="#__codelineno-0-29"></a>|·-····assert·2·&lt;=·snapshot(5)·················································|1116 <a·id="__codelineno-0-29"·name="__codelineno-0-29"·href="#__codelineno-0-29"></a>|·-····assert·2·&lt;=·snapshot(5)·················································|
1117 <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|1117 <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·&lt;=·snapshot(2)·················································|
1118 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>+------------------------------------------------------------------------------+1118 <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>+------------------------------------------------------------------------------+
1119 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>do·you·want·to·trim·these·snapshots?·[y/n]·(n):·1119 <a·id="__codelineno-0-32"·name="__codelineno-0-32"·href="#__codelineno-0-32"></a>do·you·want·to·trim·these·snapshots?·[y/n]·(n):·
1120 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>1120 <a·id="__codelineno-0-33"·name="__codelineno-0-33"·href="#__codelineno-0-33"></a>
1121 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>\x1b[32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.14s\x1b[0m\x1b[32m·===============================\x1b[0m1121 <a·id="__codelineno-0-34"·name="__codelineno-0-34"·href="#__codelineno-0-34"></a>\x1b[32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.15s\x1b[0m\x1b[32m·===============================\x1b[0m
1122 </code></pre></div>1122 </code></pre></div>
1123 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>1123 <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">&para;</a></h2>
1124 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.1124 <p>Disables·all·the·snapshot·logic.·<code>snapshot(x)</code>·will·just·return·<code>x</code>.
1125 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>1125 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>
1126 <div·class="admonition·info">1126 <div·class="admonition·info">
1127 <p·class="admonition-title">deprecation</p>1127 <p·class="admonition-title">deprecation</p>
1128 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>1128 <p>This·option·was·previously·called·<code>--inline-snapshot-disable</code></p>
4.92 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 [1;34m>·pytest·test_something.py·--inline-snapshot=create,report69 [1;34m>·pytest·test_something.py·--inline-snapshot=create,report
70 [0m\x1b[1m=============================·test·session·starts70 [0m\x1b[1m=============================·test·session·starts
71 ==============================\x1b[0m71 ==============================\x1b[0m
72 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.072 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
73 rootdir:·/tmp/tmp.cJ5ZIXZuFS73 rootdir:·/tmp/tmp.55JkUgF7xo
74 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-74 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-
75 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.175 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
76 collected·1·item76 collected·1·item
  
77 test_something.py·\x1b[32m.\x1b[0m\x1b[32m77 test_something.py·\x1b[32m.\x1b[0m\x1b[32m
78 [100%]\x1b[0m78 [100%]\x1b[0m
79 ===============================·inline·snapshot79 ===============================·inline·snapshot
Offset 124, 23 lines modifiedOffset 124, 23 lines modified
124 +------------------------------------------------------------------------------124 +------------------------------------------------------------------------------
125 +125 +
126 These·changes·are·not·applied.126 These·changes·are·not·applied.
127 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with127 Use·--inline-snapshot=trim·to·apply·them,·or·use·the·interactive·mode·with
128 --inline-snapshot=review128 --inline-snapshot=review
  
  
129 [32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.13s\x1b[0m\x1b[32m129 [32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.25s\x1b[0m\x1b[32m
130 ===============================\x1b[0m130 ===============================\x1b[0m
131 *\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 *\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*
132 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots132 give·a·short·report·over·which·changes·can·be·made·to·the·snapshots
133 [1;34m>·pytest·test_something.py·--inline-snapshot=short-report133 [1;34m>·pytest·test_something.py·--inline-snapshot=short-report
134 [0m\x1b[1m=============================·test·session·starts134 [0m\x1b[1m=============================·test·session·starts
135 ==============================\x1b[0m135 ==============================\x1b[0m
136 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0136 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
137 rootdir:·/tmp/tmp.5nmmmJlglG137 rootdir:·/tmp/tmp.wuzw7eb2yh
138 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-138 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-
139 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1139 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
140 collected·1·item140 collected·1·item
  
141 test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m141 test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m
142 [100%]\x1b[0m142 [100%]\x1b[0m
  
Offset 156, 26 lines modifiedOffset 156, 26 lines modified
  
156 You·can·also·use·--inline-snapshot=review·to·approve·the·changes·interactively156 You·can·also·use·--inline-snapshot=review·to·approve·the·changes·interactively
157 [36m\x1b[1m===========================·short·test·summary·info157 [36m\x1b[1m===========================·short·test·summary·info
158 ============================\x1b[0m158 ============================\x1b[0m
159 [31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot159 [31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot
160 is·missing·one·value.160 is·missing·one·value.
161 [31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in161 [31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in
162 0.14s\x1b[0m\x1b[31m·==========================\x1b[0m162 0.31s\x1b[0m\x1b[31m·==========================\x1b[0m
163 Info163 Info
164 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled164 short-report·exists·mainly·to·show·that·snapshots·have·changed·with·enabled
165 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this165 pytest·assert-rewriting.·This·option·will·be·replaced·with·r\x8re\x8ep\x8po\x8or\x8rt\x8t·when·this
166 restriction·is·lifted.166 restriction·is·lifted.
167 *\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*167 *\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*
168 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots168 Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots
169 [1;34m>·pytest·test_something.py·--inline-snapshot=report169 [1;34m>·pytest·test_something.py·--inline-snapshot=report
170 [0m\x1b[1m=============================·test·session·starts170 [0m\x1b[1m=============================·test·session·starts
171 ==============================\x1b[0m171 ==============================\x1b[0m
172 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0172 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
173 rootdir:·/tmp/tmp.l1LR1EF9gv173 rootdir:·/tmp/tmp.cpwbZvuY0c
174 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-174 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-
175 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1175 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
176 collected·1·item176 collected·1·item
  
177 test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m177 test_something.py·\x1b[32m.\x1b[0m\x1b[31mE\x1b[0m\x1b[31m
178 [100%]\x1b[0m178 [100%]\x1b[0m
  
Offset 237, 22 lines modifiedOffset 237, 22 lines modified
237 --inline-snapshot=review237 --inline-snapshot=review
  
238 [36m\x1b[1m===========================·short·test·summary·info238 [36m\x1b[1m===========================·short·test·summary·info
239 ============================\x1b[0m239 ============================\x1b[0m
240 [31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot240 [31mERROR\x1b[0m·test_something.py::\x1b[1mtest_something\x1b[0m·-·Failed:·your·snapshot
241 is·missing·one·value.241 is·missing·one·value.
242 [31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in242 [31m==========================·\x1b[32m1·passed\x1b[0m,·\x1b[31m\x1b[1m1·error\x1b[0m\x1b[31m·in
243 0.15s\x1b[0m\x1b[31m·==========================\x1b[0m243 0.18s\x1b[0m\x1b[31m·==========================\x1b[0m
244 *\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*244 *\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*
245 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes245 Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes
246 [1;34m>·pytest·test_something.py·--inline-snapshot=review246 [1;34m>·pytest·test_something.py·--inline-snapshot=review
247 [0m\x1b[1m=============================·test·session·starts247 [0m\x1b[1m=============================·test·session·starts
248 ==============================\x1b[0m248 ==============================\x1b[0m
249 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0249 platform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0
250 rootdir:·/tmp/tmp.zV2aP2k2Hh250 rootdir:·/tmp/tmp.MDQbIXE4hq
251 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-251 plugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-
252 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1252 snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1
253 collected·1·item253 collected·1·item
  
254 test_something.py·\x1b[32m.\x1b[0m\x1b[32m254 test_something.py·\x1b[32m.\x1b[0m\x1b[32m
255 [100%]\x1b[0m255 [100%]\x1b[0m
256 ===============================·inline·snapshot256 ===============================·inline·snapshot
Offset 298, 15 lines modifiedOffset 298, 15 lines modified
298 |298 |
299 |·+····assert·2·<=·snapshot(2)299 |·+····assert·2·<=·snapshot(2)
300 |300 |
301 +------------------------------------------------------------------------------301 +------------------------------------------------------------------------------
302 +302 +
303 do·you·want·to·trim·these·snapshots?·[y/n]·(n):303 do·you·want·to·trim·these·snapshots?·[y/n]·(n):
  
304 [32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.14s\x1b[0m\x1b[32m304 [32m==============================·\x1b[32m\x1b[1m1·passed\x1b[0m\x1b[32m·in·0.15s\x1b[0m\x1b[32m
305 ===============================\x1b[0m305 ===============================\x1b[0m
306 *\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*306 *\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*
307 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be307 Disables·all·the·snapshot·logic.·snapshot(x)·will·just·return·x.·This·can·be
308 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,308 used·if·you·think·exclude·that·snapshot·logic·causes·a·problem·in·your·tests,
309 or·if·you·want·to·speedup·your·CI.309 or·if·you·want·to·speedup·your·CI.
310 deprecation310 deprecation
311 This·option·was·previously·called·--inline-snapshot-disable311 This·option·was·previously·called·--inline-snapshot-disable
27.9 KB
./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json
27.8 KB
Pretty-printed
Similarity: 0.9988425925925927% Differences: {"'docs'": "{128: {'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>\\x1b[1;34m&gt; pytest ' 'test_something.py ' '--inline-snapshot=create,report\\n\\x1b[0m\\x1b[1m============================= test ' […]
    
Offset 647, 30 lines modifiedOffset 647, 30 lines modified
647 ········{647 ········{
648 ············"location":·"pytest.html",648 ············"location":·"pytest.html",
649 ············"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>",649 ············"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>",
650 ············"title":·"pytest·integration"650 ············"title":·"pytest·integration"
651 ········},651 ········},
652 ········{652 ········{
653 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",653 ············"location":·"pytest.html#-inline-snapshotcreatefixtrimupdate",
654 ············"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>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=create,report\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.cJ5ZIXZuFS\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[32m··············································[·...·truncated·by·diffoscope;·len:·2778,·SHA:·7c98b859ff4a9bea631794629c80ab269f36dced062e5500d1a90de9a04290db·...·]s\u001b[0m\u001b[32m·===============================\u001b[0m\n</code></pre>",654 ············"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>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=create,report\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.55JkUgF7xo\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[32m··············································[·...·truncated·by·diffoscope;·len:·2778,·SHA:·30012189d69c0238c5435544383f82d328c2db4435bba0da313118886d57177e·...·]s\u001b[0m\u001b[32m·===============================\u001b[0m\n</code></pre>",
655 ············"title":·"--inline-snapshot=create,fix,trim,update"655 ············"title":·"--inline-snapshot=create,fix,trim,update"
656 ········},656 ········},
657 ········{657 ········{
658 ············"location":·"pytest.html#-inline-snapshotshort-report",658 ············"location":·"pytest.html#-inline-snapshotshort-report",
659 ············"text":·"<p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=short-report\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.5nmmmJlglG\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m··························[·...·truncated·by·diffoscope;·len:·980,·SHA:·2f8207a655316d1cfccb0e65a6f0d9792d63dd23fd3610c489044be2fe2f0b51·...·]s\u001b[0m\u001b[31m·==========================\u001b[0m\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>",659 ············"text":·"<p>give·a·short·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=short-report\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.wuzw7eb2yh\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m··························[·...·truncated·by·diffoscope;·len:·980,·SHA:·af4857db4a436fdb913d8b398e44fb5d203fa50ec938176b7b0d6f7a59822d3b·...·]s\u001b[0m\u001b[31m·==========================\u001b[0m\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>",
660 ············"title":·"--inline-snapshot=short-report"660 ············"title":·"--inline-snapshot=short-report"
661 ········},661 ········},
662 ········{662 ········{
663 ············"location":·"pytest.html#-inline-snapshotreport",663 ············"location":·"pytest.html#-inline-snapshotreport",
664 ············"text":·"<p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=report\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.l1LR1EF9gv\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m··························[·...·truncated·by·diffoscope;·len:·3408,·SHA:·70f6de7d86bde38ca54665c2f300621251c010385b363146174369fd7dc60f14·...·]s\u001b[0m\u001b[31m·==========================\u001b[0m\n</code></pre>",664 ············"text":·"<p>Shows·a·diff·report·over·which·changes·can·be·made·to·the·snapshots</p>·<pre><code>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=report\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.cpwbZvuY0c\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[31mE\u001b[0m\u001b[31m··························[·...·truncated·by·diffoscope;·len:·3408,·SHA:·3b2cd9f0ed8c2e1806213e5fe633a529a8c38469cbff6eb7d09a80e44213e274·...·]s\u001b[0m\u001b[31m·==========================\u001b[0m\n</code></pre>",
665 ············"title":·"--inline-snapshot=report"665 ············"title":·"--inline-snapshot=report"
666 ········},666 ········},
667 ········{667 ········{
668 ············"location":·"pytest.html#-inline-snapshotreview",668 ············"location":·"pytest.html#-inline-snapshotreview",
669 ············"text":·"<p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>·<pre><code>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=review\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.zV2aP2k2Hh\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[32m··············································[·...·truncated·by·diffoscope;·len:·2667,·SHA:·ece9852f83237e740c2eed12e8d8d845a3c1506f4523487c1454c8e905159208·...·]s\u001b[0m\u001b[32m·===============================\u001b[0m\n</code></pre>",669 ············"text":·"<p>Shows·a·diff·report·for·each·category·and·ask·if·you·want·to·apply·the·changes</p>·<pre><code>\u001b[1;34m&gt;·pytest·test_something.py·--inline-snapshot=review\n\u001b[0m\u001b[1m=============================·test·session·starts·==============================\u001b[0m\nplatform·linux·--·Python·3.12.7,·pytest-8.3.3,·pluggy-1.5.0\nrootdir:·/tmp/tmp.MDQbIXE4hq\nplugins:·time-machine-2.14.1,·subtests-0.13.1,·pytest_freezer-0.4.8,·inline-snapshot-0.14.0,·hypothesis-6.122.1,·typeguard-4.4.1\ncollected·1·item\n\ntest_something.py·\u001b[32m.\u001b[0m\u001b[32m··············································[·...·truncated·by·diffoscope;·len:·2667,·SHA:·3c5ff5fb7cb171b02193aafc2ef3e7a6cde2403af9c2e7fddfc76c5f33d2598a·...·]s\u001b[0m\u001b[32m·===============================\u001b[0m\n</code></pre>",
670 ············"title":·"--inline-snapshot=review"670 ············"title":·"--inline-snapshot=review"
671 ········},671 ········},
672 ········{672 ········{
673 ············"location":·"pytest.html#-inline-snapshotdisable",673 ············"location":·"pytest.html#-inline-snapshotdisable",
674 ············"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>",674 ············"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>",
675 ············"title":·"--inline-snapshot=disable"675 ············"title":·"--inline-snapshot=disable"
676 ········},676 ········},