Skip to content

Commit

Permalink
Update test_server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Red_wolf2467 committed Nov 17, 2024
1 parent b9bb2ce commit 23f8e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def check_user():
# Chatfilter Test
@pytest.mark.asyncio
async def test_check_chatfilter(app):
client = await app.test_client()
client = app.test_client()

response = await client.post("/chatfilter", json={"message": "This is a badword1"})
data = await response.get_json()
Expand All @@ -55,7 +55,7 @@ async def test_check_chatfilter(app):
# User Test
@pytest.mark.asyncio
async def test_check_user(app):
client = await app.test_client()
client = app.test_client()

response = await client.post("/user", json={"id": 123})
data = await response.get_json()
Expand Down

0 comments on commit 23f8e3d

Please sign in to comment.