File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments