Skip to content

Commit 78a6525

Browse files
committed
Fix path for test databases
1 parent f557b10 commit 78a6525

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
TEST_GRAMPSHOME = tempfile.mkdtemp()
3232
os.environ["GRAMPSHOME"] = TEST_GRAMPSHOME
33+
os.environ["GRAMPS_DATABASE_PATH"] = os.path.join(TEST_GRAMPSHOME, "gramps", "grampsdb")
3334

3435
from gramps.cli.clidbman import CLIDbManager
3536
from gramps.cli.grampscli import CLIManager

tests/test_endpoints/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def setUpModule():
8383
"MEDIA_BASE_DIR": f"{os.environ['GRAMPS_RESOURCES']}/doc/gramps/example/gramps",
8484
"VECTOR_EMBEDDING_MODEL": "paraphrase-albert-small-v2",
8585
"LLM_MODEL": "mock-model",
86-
}
86+
},
87+
config_from_env=False,
8788
)
8889
TEST_CLIENT = test_app.test_client()
8990
with test_app.app_context():

0 commit comments

Comments
 (0)