Skip to content

Commit 5fe7268

Browse files
authored
chore: fix typos (#525)
* chore: fix minor typos * protobf -> protobuf
1 parent 31ffb84 commit 5fe7268

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

google/cloud/datastore/_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
def _make_retry_timeout_kwargs(retry, timeout):
35-
"""Helper for methods taking optional retry / timout args."""
35+
"""Helper for methods taking optional retry / timeout args."""
3636
kwargs = {}
3737

3838
if retry is not None:

tests/system/test_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_transaction_via_explicit_begin_get_commit(
4949
# github.com/GoogleCloudPlatform/google-cloud-python/issues/1859
5050
# Note that this example lacks the threading which provokes the race
5151
# condition in that issue: we are basically just exercising the
52-
# "explict" path for using transactions.
52+
# "explicit" path for using transactions.
5353
before_1 = 100
5454
before_2 = 0
5555
transfer_amount = 40

tests/unit/test_helpers.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _compare_entity_proto(entity_pb1, entity_pb2):
208208
assert val1 == val2
209209

210210

211-
def test_enity_to_protobf_w_empty():
211+
def test_entity_to_protobuf_w_empty():
212212
from google.cloud.datastore_v1.types import entity as entity_pb2
213213
from google.cloud.datastore.entity import Entity
214214
from google.cloud.datastore.helpers import entity_to_protobuf
@@ -218,7 +218,7 @@ def test_enity_to_protobf_w_empty():
218218
_compare_entity_proto(entity_pb, entity_pb2.Entity())
219219

220220

221-
def test_enity_to_protobf_w_key_only():
221+
def test_entity_to_protobuf_w_key_only():
222222
from google.cloud.datastore_v1.types import entity as entity_pb2
223223
from google.cloud.datastore.entity import Entity
224224
from google.cloud.datastore.helpers import entity_to_protobuf
@@ -239,7 +239,7 @@ def test_enity_to_protobf_w_key_only():
239239
_compare_entity_proto(entity_pb, expected_pb)
240240

241241

242-
def test_enity_to_protobf_w_simple_fields():
242+
def test_entity_to_protobuf_w_simple_fields():
243243
from google.cloud.datastore_v1.types import entity as entity_pb2
244244
from google.cloud.datastore.entity import Entity
245245
from google.cloud.datastore.helpers import _new_value_pb
@@ -261,7 +261,7 @@ def test_enity_to_protobf_w_simple_fields():
261261
_compare_entity_proto(entity_pb, expected_pb)
262262

263263

264-
def test_enity_to_protobf_w_with_empty_list():
264+
def test_entity_to_protobuf_w_with_empty_list():
265265
from google.cloud.datastore_v1.types import entity as entity_pb2
266266
from google.cloud.datastore.entity import Entity
267267
from google.cloud.datastore.helpers import entity_to_protobuf
@@ -277,7 +277,7 @@ def test_enity_to_protobf_w_with_empty_list():
277277
_compare_entity_proto(entity_pb, expected_pb)
278278

279279

280-
def test_enity_to_protobf_w_inverts_to_protobuf():
280+
def test_entity_to_protobuf_w_inverts_to_protobuf():
281281
from google.cloud.datastore_v1.types import entity as entity_pb2
282282
from google.cloud.datastore.helpers import _new_value_pb
283283
from google.cloud.datastore.helpers import entity_from_protobuf
@@ -332,7 +332,7 @@ def test_enity_to_protobf_w_inverts_to_protobuf():
332332
_compare_entity_proto(original_pb, new_pb)
333333

334334

335-
def test_enity_to_protobf_w_meaning_with_change():
335+
def test_entity_to_protobuf_w_meaning_with_change():
336336
from google.cloud.datastore_v1.types import entity as entity_pb2
337337
from google.cloud.datastore.entity import Entity
338338
from google.cloud.datastore.helpers import _new_value_pb
@@ -352,7 +352,7 @@ def test_enity_to_protobf_w_meaning_with_change():
352352
_compare_entity_proto(entity_pb, expected_pb)
353353

354354

355-
def test_enity_to_protobf_w_variable_meanings():
355+
def test_entity_to_protobuf_w_variable_meanings():
356356
from google.cloud.datastore_v1.types import entity as entity_pb2
357357
from google.cloud.datastore.entity import Entity
358358
from google.cloud.datastore.helpers import _new_value_pb
@@ -380,7 +380,7 @@ def test_enity_to_protobf_w_variable_meanings():
380380
_compare_entity_proto(entity_pb, expected_pb)
381381

382382

383-
def test_enity_to_protobf_w_dict_to_entity():
383+
def test_entity_to_protobuf_w_dict_to_entity():
384384
from google.cloud.datastore_v1.types import entity as entity_pb2
385385
from google.cloud.datastore.entity import Entity
386386
from google.cloud.datastore.helpers import entity_to_protobuf
@@ -401,7 +401,7 @@ def test_enity_to_protobf_w_dict_to_entity():
401401
assert entity_pb == expected_pb
402402

403403

404-
def test_enity_to_protobf_w_dict_to_entity_recursive():
404+
def test_entity_to_protobuf_w_dict_to_entity_recursive():
405405
from google.cloud.datastore_v1.types import entity as entity_pb2
406406
from google.cloud.datastore.entity import Entity
407407
from google.cloud.datastore.helpers import entity_to_protobuf

0 commit comments

Comments
 (0)