--- /srv/reproducible-results/rbuild-debian/r-b-build.EjyASzHo/b1/python-inline-snapshot_0.13.3-1_amd64.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.EjyASzHo/b2/python-inline-snapshot_0.13.3-1_amd64.changes ├── Files │ @@ -1,3 +1,3 @@ │ │ - 92c40875c8ba0599aaca669984fdf168 530680 doc optional python-inline-snapshot-doc_0.13.3-1_all.deb │ + 2b7cb93116dc44376a842abbe50dfc8e 530692 doc optional python-inline-snapshot-doc_0.13.3-1_all.deb │ a133f6b76d1775b4c19bfe3081df11f2 27204 python optional python3-inline-snapshot_0.13.3-1_all.deb ├── python-inline-snapshot-doc_0.13.3-1_all.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2024-10-12 17:32:27.000000 debian-binary │ │ --rw-r--r-- 0 0 0 3000 2024-10-12 17:32:27.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 527488 2024-10-12 17:32:27.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 3004 2024-10-12 17:32:27.000000 control.tar.xz │ │ +-rw-r--r-- 0 0 0 527496 2024-10-12 17:32:27.000000 data.tar.xz │ ├── control.tar.xz │ │ ├── control.tar │ │ │ ├── ./md5sums │ │ │ │ ├── ./md5sums │ │ │ │ │┄ Files differ │ ├── data.tar.xz │ │ ├── data.tar │ │ │ ├── ./usr/share/doc/python-inline-snapshot-doc/html/pytest.html │ │ │ │ @@ -948,15 +948,15 @@ │ │ │ │ assert 1 == snapshot() │ │ │ │ assert 2 <= snapshot(5) │ │ │ │ │ │ │ │
> pytest test_something.py --inline-snapshot=create,report
│ │ │ │  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
│ │ │ │  pytest: error: unrecognized arguments: --inline-snapshot=create,report
│ │ │ │    inifile: None
│ │ │ │ -  rootdir: /tmp/tmp.2u8e4lLFUU
│ │ │ │ +  rootdir: /tmp/tmp.mCr95HWpKw
│ │ │ │  
│ │ │ │  
│ │ │ │

--inline-snapshot=short-report

│ │ │ │

give a short report over which changes can be made to the snapshots

│ │ │ │
> pytest test_something.py --inline-snapshot=short-report
│ │ │ │  environment: line 10: python: command not found
│ │ │ │  
│ │ │ │ @@ -967,24 +967,24 @@ │ │ │ │ │ │ │ │

--inline-snapshot=report

│ │ │ │

Shows a diff report over which changes can be made to the snapshots

│ │ │ │
> pytest test_something.py --inline-snapshot=report
│ │ │ │  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
│ │ │ │  pytest: error: unrecognized arguments: --inline-snapshot=report
│ │ │ │    inifile: None
│ │ │ │ -  rootdir: /tmp/tmp.BXnnyCutDi
│ │ │ │ +  rootdir: /tmp/tmp.SDzoenXrua
│ │ │ │  
│ │ │ │  
│ │ │ │

--inline-snapshot=review

│ │ │ │

Shows a diff report for each category and ask if you want to apply the changes

│ │ │ │
> pytest test_something.py --inline-snapshot=review
│ │ │ │  ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
│ │ │ │  pytest: error: unrecognized arguments: --inline-snapshot=review
│ │ │ │    inifile: None
│ │ │ │ -  rootdir: /tmp/tmp.OD8PUf8yC8
│ │ │ │ +  rootdir: /tmp/tmp.Xt1x2KD9qF
│ │ │ │  
│ │ │ │  
│ │ │ │

--inline-snapshot=disable

│ │ │ │

Disables all the snapshot logic. snapshot(x) will just return x. │ │ │ │ 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.

│ │ │ │
│ │ │ │

deprecation

│ │ │ │ ├── html2text {} │ │ │ │ │ @@ -65,15 +65,15 @@ │ │ │ │ │ def test_something(): │ │ │ │ │ assert 1 == snapshot() │ │ │ │ │ assert 2 <= snapshot(5) │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=create,report │ │ │ │ │ [0mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] │ │ │ │ │ pytest: error: unrecognized arguments: --inline-snapshot=create,report │ │ │ │ │ inifile: None │ │ │ │ │ - rootdir: /tmp/tmp.2u8e4lLFUU │ │ │ │ │ + rootdir: /tmp/tmp.mCr95HWpKw │ │ │ │ │ [0m │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==sshhoorrtt--rreeppoorrtt_?¶ ********** │ │ │ │ │ give a short report over which changes can be made to the snapshots │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=short-report │ │ │ │ │ [0menvironment: line 10: python: command not found │ │ │ │ │ Info │ │ │ │ │ short-report exists mainly to show that snapshots have changed with enabled │ │ │ │ │ @@ -81,23 +81,23 @@ │ │ │ │ │ restriction is lifted. │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==rreeppoorrtt_?¶ ********** │ │ │ │ │ Shows a diff report over which changes can be made to the snapshots │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=report │ │ │ │ │ [0mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] │ │ │ │ │ pytest: error: unrecognized arguments: --inline-snapshot=report │ │ │ │ │ inifile: None │ │ │ │ │ - rootdir: /tmp/tmp.BXnnyCutDi │ │ │ │ │ + rootdir: /tmp/tmp.SDzoenXrua │ │ │ │ │ [0m │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==rreevviieeww_?¶ ********** │ │ │ │ │ Shows a diff report for each category and ask if you want to apply the changes │ │ │ │ │ [1;34m> pytest test_something.py --inline-snapshot=review │ │ │ │ │ [0mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...] │ │ │ │ │ pytest: error: unrecognized arguments: --inline-snapshot=review │ │ │ │ │ inifile: None │ │ │ │ │ - rootdir: /tmp/tmp.OD8PUf8yC8 │ │ │ │ │ + rootdir: /tmp/tmp.Xt1x2KD9qF │ │ │ │ │ [0m │ │ │ │ │ ********** ----iinnlliinnee--ssnnaappsshhoott==ddiissaabbllee_?¶ ********** │ │ │ │ │ Disables all the snapshot logic. snapshot(x) will just return x. 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. │ │ │ │ │ deprecation │ │ │ │ │ This option was previously called --inline-snapshot-disable │ │ │ ├── ./usr/share/doc/python-inline-snapshot-doc/html/search/search_index.json │ │ │ │ ├── Pretty-printed │ │ │ │ │┄ Similarity: 0.9990671641791045% │ │ │ │ │┄ Differences: {"'docs'": "{118: {'text': '

Approve the changes of the given category. These flags can be " │ │ │ │ │┄ 'combined with report and review.

test_something.py
from inline_snapshot '
│ │ │ │ │┄            'import snapshot\\n\\n\\ndef test_something():\\n    assert 1 == snapshot()\\n    '
│ │ │ │ │┄            'assert 2 <= snapshot(5)\\n
\\x1b[1;34m> pytest '
│ │ │ │ │┄            'test_something.py --inline-snapshot=create,report\\n\\x1b[0m\\x1b[31mERROR: usage: '
│ │ │ │ │┄            'pytest [options] [file […]
│ │ │ │ │ @@ -597,30 +597,30 @@
│ │ │ │ │          {
│ │ │ │ │              "location": "pytest.html",
│ │ │ │ │              "text": "

inline-snapshot provides one pytest option with different flags (create, fix, trim, update, short-report, report, disable).

Snapshot comparisons return always True 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:

from inline_snapshot import snapshot\n\n\ndef test_something():\n    assert 1 == snapshot(5)\n    assert 2 <= snapshot(5)\n

Note

Every flag with the exception of disable and short-report disables the pytest assert-rewriting.

", │ │ │ │ │ "title": "pytest integration" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotcreatefixtrimupdate", │ │ │ │ │ - "text": "

Approve the changes of the given category. These flags can be combined with report and review.

test_something.py
from inline_snapshot import snapshot\n\n\ndef test_something():\n    assert 1 == snapshot()\n    assert 2 <= snapshot(5)\n
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n\u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --inline-snapshot=create,report\n  inifile: None\n  rootdir: /tmp/tmp.2u8e4lLFUU\n\u001b[0m\n
", │ │ │ │ │ + "text": "

Approve the changes of the given category. These flags can be combined with report and review.

test_something.py
from inline_snapshot import snapshot\n\n\ndef test_something():\n    assert 1 == snapshot()\n    assert 2 <= snapshot(5)\n
\u001b[1;34m> pytest test_something.py --inline-snapshot=create,report\n\u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --inline-snapshot=create,report\n  inifile: None\n  rootdir: /tmp/tmp.mCr95HWpKw\n\u001b[0m\n
", │ │ │ │ │ "title": "--inline-snapshot=create,fix,trim,update" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotshort-report", │ │ │ │ │ "text": "

give a short report over which changes can be made to the snapshots

\u001b[1;34m> pytest test_something.py --inline-snapshot=short-report\n\u001b[0menvironment: line 10: python: command not found\n

Info

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.

", │ │ │ │ │ "title": "--inline-snapshot=short-report" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotreport", │ │ │ │ │ - "text": "

Shows a diff report over which changes can be made to the snapshots

\u001b[1;34m> pytest test_something.py --inline-snapshot=report\n\u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --inline-snapshot=report\n  inifile: None\n  rootdir: /tmp/tmp.BXnnyCutDi\n\u001b[0m\n
", │ │ │ │ │ + "text": "

Shows a diff report over which changes can be made to the snapshots

\u001b[1;34m> pytest test_something.py --inline-snapshot=report\n\u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --inline-snapshot=report\n  inifile: None\n  rootdir: /tmp/tmp.SDzoenXrua\n\u001b[0m\n
", │ │ │ │ │ "title": "--inline-snapshot=report" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotreview", │ │ │ │ │ - "text": "

Shows a diff report for each category and ask if you want to apply the changes

\u001b[1;34m> pytest test_something.py --inline-snapshot=review\n\u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --inline-snapshot=review\n  inifile: None\n  rootdir: /tmp/tmp.OD8PUf8yC8\n\u001b[0m\n
", │ │ │ │ │ + "text": "

Shows a diff report for each category and ask if you want to apply the changes

\u001b[1;34m> pytest test_something.py --inline-snapshot=review\n\u001b[0m\u001b[31mERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --inline-snapshot=review\n  inifile: None\n  rootdir: /tmp/tmp.Xt1x2KD9qF\n\u001b[0m\n
", │ │ │ │ │ "title": "--inline-snapshot=review" │ │ │ │ │ }, │ │ │ │ │ { │ │ │ │ │ "location": "pytest.html#-inline-snapshotdisable", │ │ │ │ │ "text": "

Disables all the snapshot logic. snapshot(x) will just return x. 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.

deprecation

This option was previously called --inline-snapshot-disable

", │ │ │ │ │ "title": "--inline-snapshot=disable" │ │ │ │ │ },