required is false by default #61
This commit is contained in:
@@ -80,7 +80,7 @@ class Column(object):
|
|||||||
index=False,
|
index=False,
|
||||||
db_field=None,
|
db_field=None,
|
||||||
default=None,
|
default=None,
|
||||||
required=True,
|
required=False,
|
||||||
clustering_order=None):
|
clustering_order=None):
|
||||||
"""
|
"""
|
||||||
:param primary_key: bool flag, indicates this column is a primary key. The first primary key defined
|
:param primary_key: bool flag, indicates this column is a primary key. The first primary key defined
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ class TestText(BaseCassEngTestCase):
|
|||||||
Text().validate(bytearray('bytearray'))
|
Text().validate(bytearray('bytearray'))
|
||||||
|
|
||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
Text().validate(None)
|
Text(required=True).validate(None)
|
||||||
|
|
||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
Text().validate(5)
|
Text().validate(5)
|
||||||
|
|||||||
Reference in New Issue
Block a user