Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing incorrect use of dataset_id in system tests. #1383

Merged
merged 1 commit into from
Jan 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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