test db setup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/bin/python
|
||||
|
||||
from sqlalchemy import inspect
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
|
||||
def test_db_reachable_and_not_empty(db_session: Session):
|
||||
inspector = inspect(db_session.get_bind())
|
||||
tables = inspector.get_table_names()
|
||||
assert tables
|
||||
Reference in New Issue
Block a user