Fix failing test

pull/119/head
stijndcl 2022-07-18 23:23:53 +02:00
parent 0c810d84e9
commit c9dd275860
1 changed files with 6 additions and 4 deletions

View File

@ -9,8 +9,9 @@ async def test_ufora_course_cache_refresh_empty(database_session: AsyncSession,
cache = UforaCourseCache()
await cache.refresh(database_session)
assert len(cache.data) == 2
assert cache.data == ["alias", "test"]
assert len(cache.data) == 1
assert cache.data == ["test"]
assert cache.aliases == {"alias": "test"}
async def test_ufora_course_cache_refresh_not_empty(
@ -23,5 +24,6 @@ async def test_ufora_course_cache_refresh_not_empty(
await cache.refresh(database_session)
assert len(cache.data) == 2
assert cache.data == ["alias", "test"]
assert len(cache.data) == 1
assert cache.data == ["test"]
assert cache.aliases == {"alias": "test"}