3
0
Fork 0

feat: add basic db handler, for tracking counter values

more to come i'm sure, this is all i need so far
This commit is contained in:
Lance Edgar 2024-12-13 17:26:07 -06:00
parent 80a983f812
commit 51accc5a93
7 changed files with 177 additions and 2 deletions

View file

@ -448,6 +448,15 @@ app_title = WuttaTest
auth = self.app.get_auth_handler()
self.assertIsInstance(auth, AuthHandler)
def test_get_db_handler(self):
try:
from wuttjamaican.db.handler import DatabaseHandler
except ImportError:
pytest.skip("test not relevant without sqlalchemy")
db = self.app.get_db_handler()
self.assertIsInstance(db, DatabaseHandler)
def test_get_email_handler(self):
from wuttjamaican.email import EmailHandler