minor refactor and user_state tests

This commit is contained in:
msramalho
2025-02-14 23:56:36 +00:00
parent 1a3078055b
commit 1a4508df33
5 changed files with 461 additions and 67 deletions

View File

@@ -29,9 +29,9 @@ def mock_settings():
def test_db(get_settings: Settings):
from app.shared.db import models
from app.shared.db.database import make_engine
from app.web.db.crud import get_user_groups
from app.web.db.crud import get_user_group_names
get_user_groups.cache_clear()
get_user_group_names.cache_clear()
make_engine.cache_clear()
engine = make_engine(get_settings.DATABASE_PATH)