apply auto-formatting to tests

This commit is contained in:
ducklet 2023-02-04 18:15:14 +01:00
parent 65ae10c500
commit 9ffcc53571
3 changed files with 4 additions and 7 deletions

View file

@ -1,8 +1,7 @@
from starlette.testclient import TestClient
import pytest
from starlette.testclient import TestClient
from unwind import create_app
from unwind import db, models, imdb
from unwind import create_app, db, imdb, models
app = create_app()
@ -10,7 +9,6 @@ app = create_app()
@pytest.mark.asyncio
async def test_app(shared_conn: db.Database):
async with shared_conn.transaction(force_rollback=True):
# https://www.starlette.io/testclient/
client = TestClient(app)
response = client.get("/api/v1/movies")