tests upgrade

This commit is contained in:
2025-05-16 09:11:39 +03:00
parent a6b3b21894
commit 8a60bec73a
13 changed files with 395 additions and 245 deletions

View File

@@ -53,7 +53,11 @@ async def test_create_reaction(test_client, db_session, test_setup):
}
""",
"variables": {
"reaction": {"shout": test_setup["shout"].id, "kind": ReactionKind.LIKE.value, "body": "Great post!"}
"reaction": {
"shout": test_setup["shout"].id,
"kind": ReactionKind.LIKE.value,
"body": "Great post!",
}
},
},
)
@@ -61,4 +65,6 @@ async def test_create_reaction(test_client, db_session, test_setup):
assert response.status_code == 200
data = response.json()
assert "error" not in data
assert data["data"]["create_reaction"]["reaction"]["kind"] == ReactionKind.LIKE.value
assert (
data["data"]["create_reaction"]["reaction"]["kind"] == ReactionKind.LIKE.value
)