3
0
Fork 0

Add make_engine_from_config() method for AppHandler

and other misc. tweaks needed to get this incorporated into Rattail
This commit is contained in:
Lance Edgar 2023-11-19 20:36:51 -06:00
parent afd2d005a3
commit b458272207
8 changed files with 177 additions and 91 deletions

View file

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