@@ -361,7 +361,8 @@ def test_to_field_paths(self):
361361 klass = self ._get_target_class ()
362362
363363 update_values , field_paths = klass .to_field_paths (field_updates )
364- self .assertEqual (update_values , {'a' : {'b' : field_updates [field_path ]}})
364+ self .assertEqual (
365+ update_values , {'a' : {'b' : field_updates [field_path ]}})
365366 self .assertEqual (field_paths , [field_path ])
366367
367368
@@ -492,7 +493,8 @@ def test_geo_point(self):
492493 self .assertEqual (result , expected )
493494
494495 def test_array (self ):
495- from google .cloud .firestore_v1beta1 .proto .document_pb2 import ArrayValue
496+ from google .cloud .firestore_v1beta1 .proto .document_pb2 import (
497+ ArrayValue )
496498
497499 result = self ._call_fut ([
498500 99 ,
@@ -540,7 +542,8 @@ def _call_fut(values_dict):
540542 def test_many_types (self ):
541543 from google .protobuf import struct_pb2
542544 from google .protobuf import timestamp_pb2
543- from google .cloud .firestore_v1beta1 .proto .document_pb2 import ArrayValue
545+ from google .cloud .firestore_v1beta1 .proto .document_pb2 import (
546+ ArrayValue )
544547 from google .cloud .firestore_v1beta1 .proto .document_pb2 import MapValue
545548
546549 dt_seconds = 1497397225
@@ -675,7 +678,7 @@ def test_float(self):
675678 value = _value_pb (double_value = float_val )
676679 self .assertEqual (self ._call_fut (value ), float_val )
677680
678- @unittest .skipIf ((3 ,) <= sys .version_info < (3 ,4 , 4 ),
681+ @unittest .skipIf ((3 ,) <= sys .version_info < (3 , 4 , 4 ),
679682 'known datetime bug (bpo-23517) in Python' )
680683 def test_datetime (self ):
681684 from google .protobuf import timestamp_pb2
@@ -815,12 +818,13 @@ def _call_fut(value_fields, client=mock.sentinel.client):
815818
816819 return decode_dict (value_fields , client )
817820
818- @unittest .skipIf ((3 ,) <= sys .version_info < (3 ,4 , 4 ),
821+ @unittest .skipIf ((3 ,) <= sys .version_info < (3 , 4 , 4 ),
819822 'known datetime bug (bpo-23517) in Python' )
820823 def test_many_types (self ):
821824 from google .protobuf import struct_pb2
822825 from google .protobuf import timestamp_pb2
823- from google .cloud .firestore_v1beta1 .proto .document_pb2 import ArrayValue
826+ from google .cloud .firestore_v1beta1 .proto .document_pb2 import (
827+ ArrayValue )
824828 from google .cloud .firestore_v1beta1 .proto .document_pb2 import MapValue
825829 from google .cloud ._helpers import UTC
826830
@@ -1249,7 +1253,6 @@ def test_without_option(self):
12491253 self ._helper (current_document = precondition )
12501254
12511255 def test_with_option (self ):
1252- from google .cloud .firestore_v1beta1 .proto import common_pb2
12531256 from google .cloud .firestore_v1beta1 .client import CreateIfMissingOption
12541257
12551258 option = CreateIfMissingOption (True )
@@ -1342,7 +1345,6 @@ def test_after_writes_not_allowed(self):
13421345 self ._call_fut (transaction )
13431346
13441347 def test_after_writes_allowed (self ):
1345- from google .cloud .firestore_v1beta1 ._helpers import ReadAfterWriteError
13461348 from google .cloud .firestore_v1beta1 .transaction import Transaction
13471349
13481350 transaction = Transaction (mock .sentinel .client )
0 commit comments