Skip to content

Commit

Permalink
feat(datastore): add missing method for system test with emulator (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Wilcox <crwilcox@google.com>
  • Loading branch information
HemangChothani and crwilcox committed Apr 7, 2020
1 parent c25e5ed commit bf8b897
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/system/utils/clear_datastore.py
Expand Up @@ -80,6 +80,13 @@ def remove_kind(kind, client):
delete_chunks(client, results)


def remove_all_entities(client):
query = client.query()
results = list(query.fetch())
keys = [entity.key for entity in results]
client.delete_multi(keys)


def main():
client = datastore.Client()
kinds = sys.argv[1:]
Expand Down

0 comments on commit bf8b897

Please sign in to comment.