Skip to content

Commit d44dc25

Browse files
authored
Fix over-long line. (googleapis#5129)
1 parent 2399070 commit d44dc25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

firestore/tests/unit/test__helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,10 @@ def test_parse(self):
529529
import six
530530
from google.cloud.firestore_v1beta1 import _helpers
531531

532+
a_b_c = _helpers.FieldPath.from_string('a.b.c')
532533
# "Cheat" and use OrderedDict-s so that iteritems() is deterministic.
533534
field_updates = collections.OrderedDict((
534-
(_helpers.FieldPath.from_string('a.b.c'), 10),
535+
(a_b_c, 10),
535536
(_helpers.FieldPath.from_string('d'), None),
536537
(_helpers.FieldPath.from_string('e.f1'), [u'no', b'yes']),
537538
(_helpers.FieldPath.from_string('e.f2'), 4.5),
@@ -547,7 +548,7 @@ def test_parse(self):
547548
expected_updates = {
548549
'a': {
549550
'b': {
550-
'c': field_updates[_helpers.FieldPath.from_string('a.b.c')],
551+
'c': field_updates[a_b_c],
551552
},
552553
'一': field_updates[_helpers.FieldPath('a', '一')]
553554
},

0 commit comments

Comments
 (0)