Skip to content

Commit 378a688

Browse files
authored
Merge pull request #199 from lsst-sqre/tickets/DM-52601
DM-52601: Remove TEST_DATA_DIR test constant
2 parents 670c15e + 4c2b2c1 commit 378a688

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from datalinker import main
1717
from datalinker.config import config
1818

19-
from .constants import TEST_DATA_DIR
2019
from .support.butler import MockButler, patch_butler
2120

2221

@@ -27,7 +26,8 @@ async def app(monkeypatch: pytest.MonkeyPatch) -> AsyncGenerator[FastAPI]:
2726
Wraps the application in a lifespan manager so that startup and shutdown
2827
events are sent during test execution.
2928
"""
30-
monkeypatch.setattr(config, "tap_metadata_dir", TEST_DATA_DIR)
29+
test_data_path = Path(__file__).parent / "data"
30+
monkeypatch.setattr(config, "tap_metadata_dir", test_data_path)
3131
async with LifespanManager(main.app):
3232
yield main.app
3333

tests/constants.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)