Files
classquiz-ai/classquiz/tests/test_kahoot_search.py
T
2023-06-17 23:39:49 +02:00

25 lines
878 B
Python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import pytest
from classquiz.kahoot_importer.search import search
@pytest.mark.asyncio
@pytest.mark.order(-2)
async def test_search():
res = await search(query="Python", limit=100)
assert len(res.entities) == 100
await search(query="Test Quiz", limit=100)
await search(query="Biologie", limit=100)
await search(query="Chemie", limit=100)
await search(query="Deutsch", limit=100)
await search(query="Mathe", limit=100)
await search(query="Englisch", limit=100)
await search(query="Barbie", limit=100)
await search(query="Internet", limit=100)
await search(query="Windows", limit=100)
await search(query="Python", limit=100)