Skip to content

Commit 4d2f68a

Browse files
Merge pull request #28 from semiotic-ai/test-env
test: add explicit mlflow env setting in test_config.py
2 parents 51d7dbc + ae32f5d commit 4d2f68a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

graphdoc/tests/test_config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55

66
# system packages
7+
import os
78
from pathlib import Path
89

910
# external packages
@@ -40,6 +41,12 @@
4041
BASE_DIR = Path(__file__).resolve().parent.parent
4142
SCHEMA_DIR = BASE_DIR / "tests" / "assets" / "schemas"
4243
CONFIG_DIR = BASE_DIR / "tests" / "assets" / "configs"
44+
MLRUNS_DIR = BASE_DIR / "tests" / "assets" / "mlruns"
45+
46+
# set the environment variables
47+
os.environ["MLFLOW_TRACKING_URI"] = str(MLRUNS_DIR)
48+
os.environ["MLFLOW_TRACKING_USERNAME"] = "admin"
49+
os.environ["MLFLOW_TRACKING_PASSWORD"] = "password"
4350

4451

4552
class TestConfig:

0 commit comments

Comments
 (0)