Fixed linter errors, refactored delete.

This commit is contained in:
Simon Prickett 2022-02-15 18:46:50 +00:00
parent 885b24b35b
commit 6d009a0d72
3 changed files with 7 additions and 11 deletions

View file

@ -374,6 +374,7 @@ async def test_saves_model_and_creates_pk(m):
member2 = await m.Member.get(member.pk)
assert member2 == member
@pytest.mark.asyncio
async def test_delete(m):
member = m.Member(
@ -382,7 +383,7 @@ async def test_delete(m):
email="s@example.com",
join_date=today,
age=97,
bio="This is a test use to be deleted.",
bio="This is a test user to be deleted.",
)
await member.save()

View file

@ -186,6 +186,7 @@ async def test_saves_model_and_creates_pk(address, m, redis):
assert member2 == member
assert member2.address == address
@pytest.mark.asyncio
async def test_delete(address, m, redis):
member = m.Member(