Skip to content

Commit a1bc2cb

Browse files
committed
update unit test
1 parent b20159b commit a1bc2cb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/unit/test_schema.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,9 @@ def test_foreign_type_definition_property_str(self):
346346

347347
def test_timestamp_precision_property(self):
348348
TIMESTAMP_PRECISION = 3
349-
schema_field = self._make_one(
350-
"test", "TIMESTAMP", timestamp_precision=TIMESTAMP_PRECISION
351-
)
352-
self.assertEqual(
353-
schema_field._properties["timestampPrecision"], TIMESTAMP_PRECISION
354-
)
349+
schema_field = self._make_one("test", "TIMESTAMP")
350+
schema_field._properties["timestampPrecision"] = TIMESTAMP_PRECISION
351+
self.assertEqual(schema_field.timestamp_precision, TIMESTAMP_PRECISION)
355352

356353
def test_to_standard_sql_simple_type(self):
357354
examples = (

0 commit comments

Comments
 (0)