Skip to content

Commit 997899f

Browse files
committed
fixed asyncio test
1 parent 2314d37 commit 997899f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_users.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,9 @@ def teardown(self):
245245
def open_file(filename: str) -> BufferedReader:
246246
return open(Path(conftest.SAMPLES_DIR) / filename, 'br')
247247

248-
@pytest.mark.asyncio
249-
async def test_upload_avatar(self, student_user: User, captured_templates):
248+
def test_upload_avatar(self, student_user: User, captured_templates):
250249
client = conftest.get_logged_user(student_user.username)
251-
await conftest.upload_avatar(client, self.image_storage)
250+
conftest.upload_avatar(client, self.image_storage)
252251
template, _ = captured_templates[-1]
253252
assert template.name == "user.html"
254253
conftest.upload_avatar(client, self.image_storage_2)

0 commit comments

Comments
 (0)