@@ -223,7 +223,7 @@ def test_from_api_repr(self):
223223 "name" : "foo" ,
224224 "type" : "record" ,
225225 "roundingMode" : "ROUNDING_MODE_UNSPECIFIED" ,
226- "timestampPrecision" : enums . TimestampPrecision . PICOSECOND ,
226+ "timestampPrecision" : 12 ,
227227 }
228228 )
229229 self .assertEqual (field .name , "foo" )
@@ -237,7 +237,7 @@ def test_from_api_repr(self):
237237 self .assertEqual (field .range_element_type , None )
238238 self .assertEqual (field .rounding_mode , "ROUNDING_MODE_UNSPECIFIED" )
239239 self .assertEqual (
240- field ._properties [ "timestampPrecision" ] ,
240+ field .timestamp_precision ,
241241 enums .TimestampPrecision .PICOSECOND ,
242242 )
243243
@@ -356,7 +356,9 @@ def test_foreign_type_definition_property_str(self):
356356 def test_timestamp_precision_property (self ):
357357 TIMESTAMP_PRECISION = enums .TimestampPrecision .PICOSECOND
358358 schema_field = self ._make_one ("test" , "TIMESTAMP" )
359- schema_field ._properties ["timestampPrecision" ] = TIMESTAMP_PRECISION
359+ schema_field ._properties [
360+ "timestampPrecision"
361+ ] = enums .TimestampPrecision .PICOSECOND .value
360362 self .assertEqual (schema_field .timestamp_precision , TIMESTAMP_PRECISION )
361363
362364 def test_to_standard_sql_simple_type (self ):
0 commit comments