fix: add AppHandler.load_object()
method
This commit is contained in:
parent
ae973881af
commit
ef5b13a297
2 changed files with 23 additions and 0 deletions
|
@ -11,6 +11,7 @@ import pytest
|
|||
|
||||
from wuttjamaican import app
|
||||
from wuttjamaican.conf import WuttaConfig
|
||||
from wuttjamaican.util import UNSPECIFIED
|
||||
|
||||
|
||||
class TestAppHandler(TestCase):
|
||||
|
@ -25,6 +26,13 @@ class TestAppHandler(TestCase):
|
|||
self.assertEqual(self.app.handlers, {})
|
||||
self.assertEqual(self.app.appname, 'wuttatest')
|
||||
|
||||
def test_load_object(self):
|
||||
|
||||
# just confirm the method works on a basic level; the
|
||||
# underlying function is tested elsewhere
|
||||
obj = self.app.load_object('wuttjamaican.util:UNSPECIFIED')
|
||||
self.assertIs(obj, UNSPECIFIED)
|
||||
|
||||
def test_make_appdir(self):
|
||||
|
||||
# appdir is created, and 3 subfolders added by default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue