We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_nullable
1 parent 7a94dd8 commit 152b78eCopy full SHA for 152b78e
1 file changed
bigquery/tests/unit/test_schema.py
@@ -74,6 +74,16 @@ def test_mode_property(self):
74
schema_field = self._make_one('again', 'FLOAT', mode=mode)
75
self.assertIs(schema_field.mode, mode)
76
77
+ def test_is_nullable(self):
78
+ mode = 'NULLABLE'
79
+ schema_field = self._make_one('test', 'FLOAT', mode=mode)
80
+ self.assertTrue(schema_field.is_nullable)
81
+
82
+ def test_is_not_nullable(self):
83
+ mode = 'REPEATED'
84
85
+ self.assertFalse(schema_field.is_nullable)
86
87
def test_description_property(self):
88
description = 'It holds some data.'
89
schema_field = self._make_one(
0 commit comments