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

feat(datastore): add missing method for system test with emulator #19

Merged
merged 3 commits into from Apr 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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