mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 23:55:46 +02:00
Rework links
This commit is contained in:
parent
94de47082b
commit
a614e9a9f1
12 changed files with 246 additions and 30 deletions
|
|
@ -7,7 +7,7 @@ from database.utils.caches import UforaCourseCache
|
|||
async def test_ufora_course_cache_refresh_empty(postgres: AsyncSession, ufora_course_with_alias: UforaCourse):
|
||||
"""Test loading the data for the Ufora Course cache when it's empty"""
|
||||
cache = UforaCourseCache()
|
||||
await cache.refresh(postgres)
|
||||
await cache.invalidate(postgres)
|
||||
|
||||
assert len(cache.data) == 1
|
||||
assert cache.data == ["test"]
|
||||
|
|
@ -20,7 +20,7 @@ async def test_ufora_course_cache_refresh_not_empty(postgres: AsyncSession, ufor
|
|||
cache.data = ["Something"]
|
||||
cache.data_transformed = ["something"]
|
||||
|
||||
await cache.refresh(postgres)
|
||||
await cache.invalidate(postgres)
|
||||
|
||||
assert len(cache.data) == 1
|
||||
assert cache.data == ["test"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue