Choice field test updated
This commit is contained in:
committed by
Viktor Kerkez
parent
e1282028a5
commit
9c8411b251
@@ -644,7 +644,8 @@ class FieldTest(unittest.TestCase):
|
||||
"""Ensure that value is in a container of allowed values.
|
||||
"""
|
||||
class Shirt(Document):
|
||||
size = StringField(max_length=3, choices=('S','M','L','XL','XXL'))
|
||||
size = StringField(max_length=3, choices=(('S', 'Small'), ('M', 'Medium'), ('L', 'Large'),
|
||||
('XL', 'Extra Large'), ('XXL', 'Extra Extra Large')))
|
||||
|
||||
Shirt.drop_collection()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user