| | | |
Offset 967, 15 lines modified | Offset 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"><=</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"><=</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>·pytest·test_something.py·--inline-snapshot=create,report | 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>·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[0m | 972 | <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.0 | 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.0 |
974 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.cJ5ZIXZuFS | 974 | <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.1 | 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.1 |
976 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 976 | <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[0m | 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[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 modified | Offset 1001, 22 lines modified |
1001 | <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·<=·snapshot(2)·················································| | 1001 | <a·id="__codelineno-0-31"·name="__codelineno-0-31"·href="#__codelineno-0-31"></a>|·+····assert·2·<=·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=review | 1005 | <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[0m | 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.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">¶</a></h2> | 1010 | <h2·id="-inline-snapshotshort-report">--inline-snapshot=short-report<a·class="headerlink"·href="#-inline-snapshotshort-report"·title="Permanent·link">¶</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>·pytest·test_something.py·--inline-snapshot=short-report | 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>·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[0m | 1013 | <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.0 | 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.0 |
1015 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.5nmmmJlglG | 1015 | <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.1 | 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.1 |
1017 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 1017 | <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[0m | 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[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[0m | 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[0m |
Offset 1024, 27 lines modified | Offset 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·interactively | 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·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[0m | 1029 | <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[0m | 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.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">¶</a></h2> | 1038 | <h2·id="-inline-snapshotreport">--inline-snapshot=report<a·class="headerlink"·href="#-inline-snapshotreport"·title="Permanent·link">¶</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>·pytest·test_something.py·--inline-snapshot=report | 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>·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[0m | 1041 | <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.0 | 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.0 |
1043 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.l1LR1EF9gv | 1043 | <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.1 | 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.1 |
1045 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 1045 | <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[0m | 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[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[0m | 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[0m |
Offset 1077, 22 lines modified | Offset 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=review | 1080 | <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[0m | 1082 | <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[0m | 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.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">¶</a></h2> | 1086 | <h2·id="-inline-snapshotreview">--inline-snapshot=review<a·class="headerlink"·href="#-inline-snapshotreview"·title="Permanent·link">¶</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>·pytest·test_something.py·--inline-snapshot=review | 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>·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[0m | 1089 | <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.0 | 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.0 |
1091 | <a·id="__codelineno-0-4"·name="__codelineno-0-4"·href="#__codelineno-0-4"></a>rootdir:·/tmp/tmp.zV2aP2k2Hh | 1091 | <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.1 | 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.1 |
1093 | <a·id="__codelineno-0-6"·name="__codelineno-0-6"·href="#__codelineno-0-6"></a>collected·1·item | 1093 | <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[0m | 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[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 modified | Offset 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·<=·snapshot(5)·················································| | 1116 | <a·id="__codelineno-0-29"·name="__codelineno-0-29"·href="#__codelineno-0-29"></a>|·-····assert·2·<=·snapshot(5)·················································| |
1117 | <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·<=·snapshot(2)·················································| | 1117 | <a·id="__codelineno-0-30"·name="__codelineno-0-30"·href="#__codelineno-0-30"></a>|·+····assert·2·<=·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[0m | 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.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">¶</a></h2> | 1123 | <h2·id="-inline-snapshotdisable">--inline-snapshot=disable<a·class="headerlink"·href="#-inline-snapshotdisable"·title="Permanent·link">¶</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> |