Skip to content

Commit

Permalink
Fixing incorrect use of dataset_id in system tests.
Browse files Browse the repository at this point in the history
Causes by googleapis#1330 and googleapis#1369 crossing paths.
  • Loading branch information
dhermes committed Jan 14, 2016
1 parent ce7d573 commit c4d4347
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system_tests/clear_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def remove_kind(kind, client):
def remove_all_entities(client=None):
if client is None:
# Get a client that uses the test dataset.
client = datastore.Client(dataset_id=TESTS_DATASET)
client = datastore.Client(project=TESTS_DATASET)
for kind in ALL_KINDS:
remove_kind(kind, client)

Expand Down
2 changes: 1 addition & 1 deletion system_tests/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def setUpModule():
client.DATASET = TESTS_DATASET
Config.CLIENT = datastore.Client()
else:
Config.CLIENT = datastore.Client(dataset_id=EMULATOR_DATASET)
Config.CLIENT = datastore.Client(project=EMULATOR_DATASET)
populate_datastore.add_characters(client=Config.CLIENT)


Expand Down
2 changes: 1 addition & 1 deletion system_tests/populate_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def print_func(message):
def add_characters(client=None):
if client is None:
# Get a client that uses the test dataset.
client = datastore.Client(dataset_id=TESTS_DATASET)
client = datastore.Client(project=TESTS_DATASET)
with client.transaction() as xact:
for key_path, character in zip(KEY_PATHS, CHARACTERS):
if key_path[-1] != character['name']:
Expand Down

0 comments on commit c4d4347

Please sign in to comment.