3
0
Fork 0

feat: add basic "auth" data models: user/role/perm

not really tested yet though, other than unit tests
This commit is contained in:
Lance Edgar 2024-07-13 23:25:20 -05:00
parent 7442047d0e
commit 639b0de8b1
11 changed files with 378 additions and 6 deletions

17
tests/test_auth.py Normal file
View file

@ -0,0 +1,17 @@
# -*- coding: utf-8; -*-
from unittest import TestCase
from wuttjamaican import auth as mod
from wuttjamaican.conf import WuttaConfig
class TestAuthHandler(TestCase):
def setUp(self):
self.config = WuttaConfig()
self.app = self.config.get_app()
def test_basic(self):
handler = mod.AuthHandler(self.config)
self.assertIs(handler.app, self.app)