3
0
Fork 0

fix: add AppHandler.load_object() method

This commit is contained in:
Lance Edgar 2024-07-11 19:32:44 -05:00
parent ae973881af
commit ef5b13a297
2 changed files with 23 additions and 0 deletions

View file

@ -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