Skip to content

Commit

Permalink
test config global fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjanovsky committed Dec 6, 2022
1 parent f14dfe3 commit a1ec986
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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)

1 comment on commit a1ec986

@J08nY
Copy link
Member

@J08nY J08nY commented on a1ec986 Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool, thanks!

Please sign in to comment.