Migrate to FastAPI with a focus on async code

This commit is contained in:
2020-06-05 01:09:55 +02:00
parent 75843f4927
commit 12d4405654
13 changed files with 486 additions and 567 deletions

View File

@@ -1,10 +0,0 @@
from app import app as test_app
from pytest import fixture
from secrets import token_bytes
@fixture
def app():
test_app.config["TESTING"] = True
test_app.config["WTF_CSRF_ENABLED"] = False
return test_app

View File

@@ -1,4 +1,4 @@
from app.models import *
from database.models import *
from datetime import datetime