refactor fields into classes

This commit is contained in:
collerek
2020-08-23 16:14:04 +02:00
parent 806fe9b63e
commit 348a3d90dc
5 changed files with 262 additions and 369 deletions

View File

@ -76,6 +76,7 @@ def event_loop():
@pytest.fixture(autouse=True, scope="module")
async def create_test_database():
engine = sqlalchemy.create_engine(DATABASE_URL)
metadata.drop_all(engine)
metadata.create_all(engine)
department = await Department.objects.create(id=1, name="Math Department")
class1 = await SchoolClass.objects.create(name="Math", department=department)