More and more refactors
This commit is contained in:
@@ -8,7 +8,6 @@ patched_password = "New password"
|
||||
patched_avatar_index = 2
|
||||
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_patch_user():
|
||||
"""Test the patching of a user's username, password and avatar"""
|
||||
@@ -62,7 +61,7 @@ async def test_patch_user_with_empty_fields():
|
||||
"username": "",
|
||||
"password": patched_password,
|
||||
"avatar_index": patched_avatar_index,
|
||||
"playtime": 0.0
|
||||
"playtime": 0.0,
|
||||
},
|
||||
headers=headers,
|
||||
)
|
||||
@@ -74,7 +73,7 @@ async def test_patch_user_with_empty_fields():
|
||||
"username": username,
|
||||
"password": patched_password,
|
||||
"avatar_index": -1,
|
||||
"playtime": 0.0
|
||||
"playtime": 0.0,
|
||||
},
|
||||
headers=headers,
|
||||
)
|
||||
@@ -86,7 +85,7 @@ async def test_patch_user_with_empty_fields():
|
||||
"username": username,
|
||||
"password": "",
|
||||
"avatar_index": patched_avatar_index,
|
||||
"playtime": 0.0
|
||||
"playtime": 0.0,
|
||||
},
|
||||
headers=headers,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user