Skip to content

Commit

Permalink
use path again; try print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed May 1, 2024
1 parent fd173c5 commit 1708b1a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/integration/test_database_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1708b1a

Please sign in to comment.