Skip to content

Commit

Permalink
Fixing broken system test helpers.
Browse files Browse the repository at this point in the history
They were using the dataset ID environment variable key rather
than the value.
  • Loading branch information
dhermes committed Jan 30, 2016
1 parent ddc8f85 commit 2b0d245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system_tests/clear_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,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(project=TESTS_DATASET)
client = datastore.Client(project=os.getenv(TESTS_DATASET))
for kind in ALL_KINDS:
remove_kind(kind, 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(project=TESTS_DATASET)
client = datastore.Client(project=os.getenv(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 2b0d245

Please sign in to comment.