[CHORE] cleanup cache and exception on make test (#1899)

* [CHORE] cleanup cache and exception on `make test`

moved the invalidate_forever task to proper location and use `create_permanent_task`.
and there was a Task never awaited Exception when running tests

* imrpove expiration test

* move cache into utils

* fix issue with pytest_asyncio

s

---------

Co-authored-by: jacksn <jkranawetter05@gmail.com>
This commit is contained in:
dni ⚡
2023-08-28 10:56:59 +01:00
committed by GitHub
co-authored by jacksn
parent 6077edad8f
commit 48f25488df
4 changed files with 24 additions and 18 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from typing import Callable, NamedTuple
import httpx
from loguru import logger
from lnbits.cache import cache
from lnbits.utils.cache import cache
currencies = {
"AED": "United Arab Emirates Dirham",