From 60e019a26bcab8af58d9b7741a9a7ab0b4907045 Mon Sep 17 00:00:00 2001 From: Llewellyn Falco Date: Sun, 7 Jul 2024 19:09:34 +0000 Subject: [PATCH] . t - Moved pytest into integrations sub-folder Co-Authored-By: Matt Anderson Co-Authored-By: Joss Hufnagel <43077216+blade290@users.noreply.github.com> Co-Authored-By: Susan Fung <38925660+susanfung@users.noreply.github.com> --- tests/{pytest => integrations}/__init__.py | 0 tests/integrations/pytest/__init__.py | 0 tests/{ => integrations}/pytest/test_async_functions.py | 0 ...ctions.test_can_verify_in_async_test_function.approved.txt | 0 tests/{ => integrations}/pytest/test_namer.py | 4 ++-- .../pytest/test_namer.test_basic_approval.approved.txt | 0 .../pytest/test_namer.test_pytest_namer.approved.txt | 0 tests/{ => integrations}/pytest/test_pytest_config.py | 0 8 files changed, 2 insertions(+), 2 deletions(-) rename tests/{pytest => integrations}/__init__.py (100%) create mode 100644 tests/integrations/pytest/__init__.py rename tests/{ => integrations}/pytest/test_async_functions.py (100%) rename tests/{ => integrations}/pytest/test_async_functions.test_can_verify_in_async_test_function.approved.txt (100%) rename tests/{ => integrations}/pytest/test_namer.py (74%) rename tests/{ => integrations}/pytest/test_namer.test_basic_approval.approved.txt (100%) rename tests/{ => integrations}/pytest/test_namer.test_pytest_namer.approved.txt (100%) rename tests/{ => integrations}/pytest/test_pytest_config.py (100%) diff --git a/tests/pytest/__init__.py b/tests/integrations/__init__.py similarity index 100% rename from tests/pytest/__init__.py rename to tests/integrations/__init__.py diff --git a/tests/integrations/pytest/__init__.py b/tests/integrations/pytest/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/pytest/test_async_functions.py b/tests/integrations/pytest/test_async_functions.py similarity index 100% rename from tests/pytest/test_async_functions.py rename to tests/integrations/pytest/test_async_functions.py diff --git a/tests/pytest/test_async_functions.test_can_verify_in_async_test_function.approved.txt b/tests/integrations/pytest/test_async_functions.test_can_verify_in_async_test_function.approved.txt similarity index 100% rename from tests/pytest/test_async_functions.test_can_verify_in_async_test_function.approved.txt rename to tests/integrations/pytest/test_async_functions.test_can_verify_in_async_test_function.approved.txt diff --git a/tests/pytest/test_namer.py b/tests/integrations/pytest/test_namer.py similarity index 74% rename from tests/pytest/test_namer.py rename to tests/integrations/pytest/test_namer.py index 6ce10213..b1c1a01b 100644 --- a/tests/pytest/test_namer.py +++ b/tests/integrations/pytest/test_namer.py @@ -11,7 +11,7 @@ def test_basic_approval(): def test_received_filename(): namer = get_default_namer() expected = os_path( - "ApprovalTests.Python/tests/pytest/test_namer.test_received_filename.received.txt" + "ApprovalTests.Python/tests/integrations/pytest/test_namer.test_received_filename.received.txt" ) assert namer.get_received_filename().endswith(expected) @@ -19,7 +19,7 @@ def test_received_filename(): def test_pytest_namer(request): namer = PyTestNamer(request) expected = os_path( - "ApprovalTests.Python/tests/pytest/test_namer.test_pytest_namer.received.txt" + "ApprovalTests.Python/tests/integrations/pytest/test_namer.test_pytest_namer.received.txt" ) assert namer.get_received_filename().endswith(expected) verify("foo", namer=namer) diff --git a/tests/pytest/test_namer.test_basic_approval.approved.txt b/tests/integrations/pytest/test_namer.test_basic_approval.approved.txt similarity index 100% rename from tests/pytest/test_namer.test_basic_approval.approved.txt rename to tests/integrations/pytest/test_namer.test_basic_approval.approved.txt diff --git a/tests/pytest/test_namer.test_pytest_namer.approved.txt b/tests/integrations/pytest/test_namer.test_pytest_namer.approved.txt similarity index 100% rename from tests/pytest/test_namer.test_pytest_namer.approved.txt rename to tests/integrations/pytest/test_namer.test_pytest_namer.approved.txt diff --git a/tests/pytest/test_pytest_config.py b/tests/integrations/pytest/test_pytest_config.py similarity index 100% rename from tests/pytest/test_pytest_config.py rename to tests/integrations/pytest/test_pytest_config.py