Skip to content

Commit

Permalink
Fix over-long line. (googleapis#5129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Mar 29, 2018
1 parent 2399070 commit d44dc25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions firestore/tests/unit/test__helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,10 @@ def test_parse(self):
import six
from google.cloud.firestore_v1beta1 import _helpers

a_b_c = _helpers.FieldPath.from_string('a.b.c')
# "Cheat" and use OrderedDict-s so that iteritems() is deterministic.
field_updates = collections.OrderedDict((
(_helpers.FieldPath.from_string('a.b.c'), 10),
(a_b_c, 10),
(_helpers.FieldPath.from_string('d'), None),
(_helpers.FieldPath.from_string('e.f1'), [u'no', b'yes']),
(_helpers.FieldPath.from_string('e.f2'), 4.5),
Expand All @@ -547,7 +548,7 @@ def test_parse(self):
expected_updates = {
'a': {
'b': {
'c': field_updates[_helpers.FieldPath.from_string('a.b.c')],
'c': field_updates[a_b_c],
},
'一': field_updates[_helpers.FieldPath('a', '一')]
},
Expand Down

0 comments on commit d44dc25

Please sign in to comment.