From fba5deee2c079f4e0142f4f3f05c2c30691f26f5 Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Mon, 27 May 2024 17:57:43 +0100 Subject: [PATCH 1/2] Fix typo, rename theme with them --- inline_snapshot/pytest_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inline_snapshot/pytest_plugin.py b/inline_snapshot/pytest_plugin.py index 7f0ebaa..6e74cd2 100644 --- a/inline_snapshot/pytest_plugin.py +++ b/inline_snapshot/pytest_plugin.py @@ -189,7 +189,7 @@ def apply_changes(flag): else: console.print(f"These changes are not applied.") console.print( - f"Use [b]--inline-snapshot={flag}[/] to apply theme, or use the interactive mode with [b]--inline-snapshot=review[/]", + f"Use [b]--inline-snapshot={flag}[/] to apply them, or use the interactive mode with [b]--inline-snapshot=review[/]", highlight=False, ) console.print() From e37c6b5279216cbaaaca2f4e275034a2fbc6b3d5 Mon Sep 17 00:00:00 2001 From: Frank Hoffmann <15r10nk-git@polarbit.de> Date: Mon, 27 May 2024 20:03:01 +0200 Subject: [PATCH 2/2] test: fix snapshots --- tests/test_external.py | 2 +- tests/test_pytest_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_external.py b/tests/test_external.py index f1d8789..0c7440d 100644 --- a/tests/test_external.py +++ b/tests/test_external.py @@ -99,7 +99,7 @@ def test_something(): | assert 2 == snapshot(1+1) | +------------------------------------------------------------------------------+ These changes are not applied. -Use --inline-snapshot=fix to apply theme, or use the interactive mode with +Use --inline-snapshot=fix to apply them, or use the interactive mode with --inline-snapshot=review ------------------------------- Update snapshots ------------------------------- +-------------------------------- test_file.py --------------------------------+ diff --git a/tests/test_pytest_plugin.py b/tests/test_pytest_plugin.py index 2a8d743..984ff26 100644 --- a/tests/test_pytest_plugin.py +++ b/tests/test_pytest_plugin.py @@ -258,7 +258,7 @@ def test_a(): | assert 5 == snapshot(5) | +------------------------------------------------------------------------------+ These changes are not applied. -Use --inline-snapshot=update to apply theme, or use the interactive mode with +Use --inline-snapshot=update to apply them, or use the interactive mode with --inline-snapshot=review """ )