diff --git a/tests/test_database/test_utils/test_caches.py b/tests/test_database/test_utils/test_caches.py index 09583d3..2e10664 100644 --- a/tests/test_database/test_utils/test_caches.py +++ b/tests/test_database/test_utils/test_caches.py @@ -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"}