apply auto-formatting to tests
This commit is contained in:
parent
65ae10c500
commit
9ffcc53571
3 changed files with 4 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from datetime import datetime
|
||||
|
||||
import pytest
|
||||
|
||||
from unwind import db, models, web_models
|
||||
|
|
@ -7,7 +8,6 @@ from unwind import db, models, web_models
|
|||
@pytest.mark.asyncio
|
||||
async def test_add_and_get(shared_conn: db.Database):
|
||||
async with shared_conn.transaction(force_rollback=True):
|
||||
|
||||
m1 = models.Movie(
|
||||
title="test movie",
|
||||
release_year=2013,
|
||||
|
|
@ -33,7 +33,6 @@ async def test_add_and_get(shared_conn: db.Database):
|
|||
@pytest.mark.asyncio
|
||||
async def test_find_ratings(shared_conn: db.Database):
|
||||
async with shared_conn.transaction(force_rollback=True):
|
||||
|
||||
m1 = models.Movie(
|
||||
title="test movie",
|
||||
release_year=2013,
|
||||
|
|
@ -157,4 +156,3 @@ async def test_find_ratings(shared_conn: db.Database):
|
|||
rows = await db.find_ratings(title="test", include_unrated=True)
|
||||
ratings = tuple(web_models.Rating(**r) for r in rows)
|
||||
assert (web_models.Rating.from_movie(m1),) == ratings
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue