From 1708b1ab5af60454be17cf2cb7ac7283a7b52b0a Mon Sep 17 00:00:00 2001 From: Gabe Fierro Date: Tue, 30 Apr 2024 23:20:40 -0600 Subject: [PATCH] use path again; try print statements --- tests/integration/test_database_persistence.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_database_persistence.py b/tests/integration/test_database_persistence.py index 2f8d1ecc7..e33fb3436 100644 --- a/tests/integration/test_database_persistence.py +++ b/tests/integration/test_database_persistence.py @@ -8,12 +8,18 @@ EXAMPLE_TRIPLE = (URIRef("http://example.org/alex"), RDF.type, FOAF.Person) -def test_database_persistence(): +def test_database_persistence(tmp_path): # create bm - db_path = "sqlite:///db.db" + path = tmp_path / "db.db" + print(path) + db_path = f"sqlite:///{path}" + print(db_path) bm = BuildingMOTIF(db_path) + print("setup tables") bm.setup_tables() + print("make objects") + # create objects library = Library.create("my_library") template = library.create_template("my_template")