init app of test arena
This commit is contained in:
8
asf-cloud-server/testarena/backend/app/dependencies.py
Normal file
8
asf-cloud-server/testarena/backend/app/dependencies.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from .database import SessionLocal
|
||||
|
||||
def get_db():
|
||||
db = SessionLocal()
|
||||
try:
|
||||
yield db
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user