Skip to content

Commit 8cdc3aa

Browse files
committed
Review Changes
1 parent f4e3deb commit 8cdc3aa

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

firestore/google/cloud/firestore_v1beta1/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def write_option(**kwargs):
251251
:meth:`~.DocumentReference.update` and
252252
:meth:`~.DocumentReference.delete`.
253253
254-
One of the following two keyword arguments must be provided:
254+
One of the following keyword arguments must be provided:
255255
256256
* ``last_update_time`` (:class:`google.protobuf.timestamp_pb2.\
257257
Timestamp`): A timestamp. When set, the target document must exist

firestore/tests/system.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ def test_update_document(client, cleanup):
207207
assert document_id in exc_info.value.message
208208

209209
# 1. Try to update before the document exists (now with an option).
210-
211210
option1 = client.write_option(exists=True)
212211
with pytest.raises(NotFound) as exc_info:
213212
document.update({'still': 'not-there'}, option=option1)

firestore/tests/unit/test__helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ def _helper(self, option=None, do_transform=False, **write_kwargs):
12181218
'yum': _value_pb(bytes_value=value),
12191219
})
12201220
if isinstance(option, ExistsOption):
1221-
write_kwargs = {'current_document' : {'exists': option._exists}}
1221+
write_kwargs.update({'current_document' : {'exists': option._exists}})
12221222

12231223
expected_update_pb = write_pb2.Write(
12241224
update=document_pb2.Document(

0 commit comments

Comments
 (0)