Added tests for users

This commit is contained in:
Mawoka
2022-04-16 15:00:44 +02:00
parent 419f2a9906
commit c3f84e755c
8 changed files with 248 additions and 14 deletions
+16
View File
@@ -0,0 +1,16 @@
import pytest
from classquiz.kahoot_importer.import_quiz import _download_image
ddg_robots_txt = b"""a"""
test_url = (
"https://gist.githubusercontent.com/mawoka-myblock/b43f0d888a9e6a25806b3c73e63b658f/raw"
"/134f135f99f8f385695304f739667c70b636386a/test-gist"
)
@pytest.mark.asyncio
async def test_download_image():
image = await _download_image(test_url)
print(image)
assert image == ddg_robots_txt