Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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