Add make_engine_from_config()
method for AppHandler
and other misc. tweaks needed to get this incorporated into Rattail
This commit is contained in:
parent
afd2d005a3
commit
b458272207
8 changed files with 177 additions and 91 deletions
|
@ -190,6 +190,11 @@ class TestParseList(TestCase):
|
|||
self.assertIsInstance(value, list)
|
||||
self.assertEqual(len(value), 0)
|
||||
|
||||
def test_list_instance(self):
|
||||
mylist = []
|
||||
value = util.parse_list(mylist)
|
||||
self.assertIs(value, mylist)
|
||||
|
||||
def test_single_value(self):
|
||||
value = util.parse_list('foo')
|
||||
self.assertEqual(len(value), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue