Skip to content

Commit 0d77266

Browse files
test_config dynamic path
1 parent ca7d28d commit 0d77266

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/opengeodeweb_viewer/config.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ def dev_config():
2424
os.mkdir(os.environ.get("DATA_FOLDER_PATH"))
2525

2626

27-
def test_config():
27+
def test_config(path):
2828
default_config()
2929
print(f"{os.path.dirname(__file__)=}", flush=True)
30-
os.environ["DATA_FOLDER_PATH"] = os.path.join(
31-
os.path.dirname(__file__), "..", "tests", "data"
30+
os.environ["DATA_FOLDER_PATH"] = os.path.join(path,
31+
"data"
3232
)
33+
34+
print(f"{os.environ.get('DATA_FOLDER_PATH')=}", flush=True)

0 commit comments

Comments
 (0)