From 6cf76ea2c6c455ca923ad33f3ddcfe1f381ce654 Mon Sep 17 00:00:00 2001 From: Llewellyn Falco Date: Sun, 28 Jan 2024 19:27:07 +0000 Subject: [PATCH] . t cleanup Co-Authored-By: 4dsherwood <4dsherwood@users.noreply.github.com> Co-Authored-By: Susan Fung <38925660+susanfung@users.noreply.github.com> Co-Authored-By: Nitsan Avni --- .gitignore | 1 + ...VerifyTests.test_verify_automatic_approval.approved.txt | 1 - tests/conftest.py | 7 ++----- 3 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 tests/approved_files/VerifyTests.test_verify_automatic_approval.approved.txt diff --git a/.gitignore b/.gitignore index e3318058..0cc4fbd7 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,4 @@ venv .mypy_cache .DS_Store tests/approved_files/VerifyTests.test_verify_automatic_approval.approved.txt +tests/approved_files/VerifyTests.test_verify_automatic_approval.approved.txt diff --git a/tests/approved_files/VerifyTests.test_verify_automatic_approval.approved.txt b/tests/approved_files/VerifyTests.test_verify_automatic_approval.approved.txt deleted file mode 100644 index 0cfbf088..00000000 --- a/tests/approved_files/VerifyTests.test_verify_automatic_approval.approved.txt +++ /dev/null @@ -1 +0,0 @@ -2 diff --git a/tests/conftest.py b/tests/conftest.py index c380a610..b923d13f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,8 @@ from tests.approvals_config import configure_approvaltests import pytest - +# The next line registers the plugin +from approvaltests.pytest.pytest_plugin import pytest_configure # begin-snippet: conftest_pytest_session_scoped @pytest.fixture(scope="session", autouse=True) @@ -12,7 +13,3 @@ def set_default_reporter_for_all_tests(): # end-snippet -def pytest_configure(config): - from approvaltests.pytest.pytest_plugin import pytest_configure - - pytest_configure(config)