From a1ec9861d9eadfa678a6fd73d6cc88c5d39f569e Mon Sep 17 00:00:00 2001 From: Adam Janovsky Date: Tue, 6 Dec 2022 18:05:28 +0100 Subject: [PATCH] test config global fixture --- tests/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/conftest.py diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 00000000..b00c1bbe --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,12 @@ +from pathlib import Path + +import pytest + +import tests.data +from sec_certs.config.configuration import config + + +@pytest.fixture(scope="session", autouse=True) +def load_test_config(): + pth = Path(tests.data.__path__[0]) / "settings_tests.yml" + config.load(pth)