Implemented fixtures & Implementing Resource pattern
This commit is contained in:
@@ -15,7 +15,7 @@ def create_db_and_tables():
|
||||
SQLModel.metadata.create_all(engine)
|
||||
|
||||
def drop_tables():
|
||||
SQLModel.metadata.create_all(engine)
|
||||
SQLModel.metadata.drop_all(engine)
|
||||
|
||||
def get_session() -> Session:
|
||||
with Session(engine) as session:
|
||||
|
||||
Reference in New Issue
Block a user