Skip to content

Commit

Permalink
for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jul 5, 2023
1 parent dd97722 commit 65b465f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/v1/test_cross_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def callback(keys, applied_changes, read_time):
watch = Watch.for_query(query, callback, DocumentSnapshot)

wrapped_responses = [
firestore.ListenResponse.wrap(proto) for proto in testcase.responses
firestore.ListenResponse.wrap(proto._pb) for proto in testcase.responses
]
if testcase.is_error:
try:
Expand Down Expand Up @@ -336,10 +336,10 @@ def convert_set_option(option):
def convert_precondition(precond):
from google.cloud.firestore_v1 import Client

if precond.HasField("exists"):
if precond._pb.HasField("exists"):
return Client.write_option(exists=precond.exists)

assert precond.HasField("update_time")
assert precond._pb.HasField("update_time")
return Client.write_option(last_update_time=precond.update_time)


Expand Down

0 comments on commit 65b465f

Please sign in to comment.