aboutsummaryrefslogtreecommitdiffstats
path: root/datamaps/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'datamaps/tests/conftest.py')
-rw-r--r--datamaps/tests/conftest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/datamaps/tests/conftest.py b/datamaps/tests/conftest.py
index aa59301..4faed8c 100644
--- a/datamaps/tests/conftest.py
+++ b/datamaps/tests/conftest.py
@@ -1,5 +1,7 @@
import os
import shutil
+import tempfile
+
from pathlib import Path
import pytest
@@ -13,6 +15,12 @@ def master() -> Path:
@pytest.fixture
+def temp_input_dir() -> Path:
+ pth = tempfile.mkdtemp()
+ yield pth
+
+
+@pytest.fixture
def mock_config(monkeypatch):
monkeypatch.setattr(Config, "PLATFORM_DOCS_DIR", Path("/tmp/Documents/datamaps"))
monkeypatch.setattr(