Skip to content

Commit

Permalink
avoid using in-memory database- that creates a db without using felis
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-rodriguez committed Dec 11, 2024
1 parent a5fffc8 commit d36abc4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ def db():
create_database(CONNECTION_STRING, felis_schema=SCHEMA_PATH)
assert os.path.exists(DB_NAME)

# Load data into an in-memory sqlite database first, for performance
db = Database("sqlite://", reference_tables=REFERENCE_TABLES)
db.load_database(DB_PATH, verbose=False)
db.dump_sqlite(DB_NAME)

# Connect to the new database
# Connect and load to the database
db = Database(CONNECTION_STRING, reference_tables=REFERENCE_TABLES)
db.load_database(DB_PATH, verbose=False)

return db

0 comments on commit d36abc4

Please sign in to comment.