From 3ce8b3ed3e5387f45a8a0159f2b97331d975f21d Mon Sep 17 00:00:00 2001 From: Frank Hoffmann <15r10nk-git@polarbit.de> Date: Mon, 7 Oct 2024 18:56:33 +0200 Subject: [PATCH 1/5] fix: fix spelling --- docs/testing.md | 2 +- src/inline_snapshot/pytest_plugin.py | 2 +- tests/test_pytest_plugin.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index b712b7aa..9f6b1a2b 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -59,7 +59,7 @@ The following example shows how you can use the `Example` class to test what inl report=snapshot( """\ Error: one snapshot is missing a value (--inline-snapshot=create) - You can also use --inline-snapshot=review to approve the changes interactiv\ + You can also use --inline-snapshot=review to approve the changes interactively\ """ ), ).run_pytest( # run with create flag and check the changed files diff --git a/src/inline_snapshot/pytest_plugin.py b/src/inline_snapshot/pytest_plugin.py index d97a4407..7c8c1652 100644 --- a/src/inline_snapshot/pytest_plugin.py +++ b/src/inline_snapshot/pytest_plugin.py @@ -264,7 +264,7 @@ def report(flag, message, message_n): if sum(snapshot_changes.values()) != 0: console.print( - "\nYou can also use [b]--inline-snapshot=review[/] to approve the changes interactiv", + "\nYou can also use [b]--inline-snapshot=review[/] to approve the changes interactively", highlight=False, ) diff --git a/tests/test_pytest_plugin.py b/tests/test_pytest_plugin.py index 14413c96..8973fd5f 100644 --- a/tests/test_pytest_plugin.py +++ b/tests/test_pytest_plugin.py @@ -23,7 +23,7 @@ def test_a(): assert result.report == snapshot( """\ Error: one snapshot is missing a value (--inline-snapshot=create) -You can also use --inline-snapshot=review to approve the changes interactiv +You can also use --inline-snapshot=review to approve the changes interactively """ ) @@ -70,7 +70,7 @@ def test_a(): assert result.report == snapshot( """\ Error: one snapshot has incorrect values (--inline-snapshot=fix) -You can also use --inline-snapshot=review to approve the changes interactiv +You can also use --inline-snapshot=review to approve the changes interactively """ ) @@ -157,7 +157,7 @@ def test_a(): assert result.report == snapshot( """\ Info: one snapshot can be trimmed (--inline-snapshot=trim) -You can also use --inline-snapshot=review to approve the changes interactiv +You can also use --inline-snapshot=review to approve the changes interactively """ ) @@ -205,7 +205,7 @@ def test_a(): """\ Error: one snapshot has incorrect values (--inline-snapshot=fix) Info: one snapshot can be trimmed (--inline-snapshot=trim) -You can also use --inline-snapshot=review to approve the changes interactiv +You can also use --inline-snapshot=review to approve the changes interactively """ ) @@ -495,7 +495,7 @@ def test_sub_snapshot(): your snapshot is missing one value run pytest with --inline-snapshot=create to create it ======================================================================= inline snapshot ======================================================================== Error: one snapshot is missing a value (--inline-snapshot=create) -You can also use --inline-snapshot=review to approve the changes interactiv +You can also use --inline-snapshot=review to approve the changes interactively =================================================================== short test summary info ==================================================================== ERROR test_file.py::test_sub_snapshot - Failed: your snapshot is missing one value run pytest with --inline-snapshot=create to create it ================================================================== 1 passed, 1 error in