fix: add base class for WuttaList schema type
This commit is contained in:
parent
ceec4714fa
commit
24f7d7ac0a
2 changed files with 70 additions and 4 deletions
|
|
@ -198,6 +198,26 @@ class TestWuttaMoney(WebTestCase):
|
|||
self.assertEqual(widget.scale, 4)
|
||||
|
||||
|
||||
class TestWuttaList(WebTestCase):
|
||||
|
||||
def test_constructor(self):
|
||||
node = colander.SchemaNode(mod.WuttaList(self.request))
|
||||
typ = node.typ
|
||||
self.assertIs(typ.request, self.request)
|
||||
self.assertIs(typ.config, self.config)
|
||||
self.assertIs(typ.app, self.app)
|
||||
|
||||
|
||||
class TestWuttaSet(WebTestCase):
|
||||
|
||||
def test_constructor(self):
|
||||
node = colander.SchemaNode(mod.WuttaSet(self.request))
|
||||
typ = node.typ
|
||||
self.assertIs(typ.request, self.request)
|
||||
self.assertIs(typ.config, self.config)
|
||||
self.assertIs(typ.app, self.app)
|
||||
|
||||
|
||||
class TestWuttaQuantity(WebTestCase):
|
||||
|
||||
def test_serialize(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue