We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 670c15e + 4c2b2c1 commit 378a688Copy full SHA for 378a688
tests/conftest.py
@@ -16,7 +16,6 @@
16
from datalinker import main
17
from datalinker.config import config
18
19
-from .constants import TEST_DATA_DIR
20
from .support.butler import MockButler, patch_butler
21
22
@@ -27,7 +26,8 @@ async def app(monkeypatch: pytest.MonkeyPatch) -> AsyncGenerator[FastAPI]:
27
26
Wraps the application in a lifespan manager so that startup and shutdown
28
events are sent during test execution.
29
"""
30
- monkeypatch.setattr(config, "tap_metadata_dir", TEST_DATA_DIR)
+ test_data_path = Path(__file__).parent / "data"
+ monkeypatch.setattr(config, "tap_metadata_dir", test_data_path)
31
async with LifespanManager(main.app):
32
yield main.app
33
tests/constants.py
0 commit comments