1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

refactor to use bcrypt directly

This commit is contained in:
Michael Genson 2024-01-24 22:03:16 +00:00
parent 0b0c25d2f3
commit 4ae5c52de9
2 changed files with 11 additions and 10 deletions

View file

@ -1,7 +1,7 @@
from pytest import MonkeyPatch
from mealie.core.config import get_app_settings
from mealie.core.security.hasher import FakeHasher, PasslibHasher, get_hasher
from mealie.core.security.hasher import BcryptHasher, FakeHasher, get_hasher
def test_get_hasher(monkeypatch: MonkeyPatch):
@ -16,7 +16,7 @@ def test_get_hasher(monkeypatch: MonkeyPatch):
hasher = get_hasher()
assert isinstance(hasher, PasslibHasher)
assert isinstance(hasher, BcryptHasher)
get_app_settings.cache_clear()
get_hasher.cache_clear()