chore: update to latest pytest (#2800)

This commit is contained in:
dni ⚡ 2024-12-11 10:39:28 +01:00 committed by GitHub
parent 8ff4962e86
commit 291c69e470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 303 additions and 310 deletions

View file

@ -26,7 +26,7 @@ test_data = DbTestModel3(
)
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_helpers_insert_query():
q = insert_query("test_helpers_query", test_data)
assert q == (
@ -36,7 +36,7 @@ async def test_helpers_insert_query():
)
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_helpers_update_query():
q = update_query("test_helpers_query", test_data)
assert q == (
@ -65,7 +65,7 @@ test_dict = {
}
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_helpers_model_to_dict():
d = model_to_dict(test_data)
assert d.get("id") == test_data.id
@ -75,7 +75,7 @@ async def test_helpers_model_to_dict():
assert d == test_dict
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_helpers_dict_to_model():
m = dict_to_model(test_dict, DbTestModel3)
assert m == test_data