feat: add basic "auth" data models: user/role/perm
not really tested yet though, other than unit tests
This commit is contained in:
parent
7442047d0e
commit
639b0de8b1
11 changed files with 378 additions and 6 deletions
17
tests/test_auth.py
Normal file
17
tests/test_auth.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue