3
0
Fork 0

fix: add base class for WuttaList schema type

This commit is contained in:
Lance Edgar 2026-03-10 09:10:14 -05:00
parent ceec4714fa
commit 24f7d7ac0a
2 changed files with 70 additions and 4 deletions

View file

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