| | | |
Offset 969, 15 lines modified | Offset 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"><=</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"><=</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">>·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">>·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.0 | 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.0 |
976 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.GQwL6NRJcW | 976 | <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.1 | 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.1 |
978 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 978 | <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 modified | Offset 1003, 22 lines modified |
1003 | <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·<=·snapshot(2)·················································| | 1003 | <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·<=·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=review | 1007 | <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">¶</a></h2> | 1012 | <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">¶</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">>·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">>·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.0 | 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.0 |
1017 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.xTwZEQScdr | 1017 | <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.1 | 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.1 |
1019 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 1019 | <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 modified | Offset 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·interactively | 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·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">¶</a></h2> | 1040 | <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">¶</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">>·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">>·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.0 | 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.0 |
1045 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.J0PhICwnTo | 1045 | <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.1 | 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.1 |
1047 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 1047 | <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 modified | Offset 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=review | 1082 | <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">¶</a></h2> | 1088 | <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">¶</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">>·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">>·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.0 | 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.0 |
1093 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.WN6HAbMbmc | 1093 | <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.1 | 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.1 |
1095 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 1095 | <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 modified | Offset 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·<=·snapshot(5)·················································| | 1118 | <a·id="__codelineno-0-29"·name="__codelineno-0-29"·href="#__codelineno-0-29"></a>|·-····assert·2·<=·snapshot(5)·················································| |
1119 | <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·<=·snapshot(2)·················································| | 1119 | <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·<=·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">¶</a></h2> | 1125 | <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">¶</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> |