make it possible to create e2e test user on staging

This commit is contained in:
Kenneth Kehl
2024-04-12 11:29:33 -07:00
parent dc2bdafc0c
commit a1f57ac4c0
2 changed files with 3 additions and 3 deletions

View File

@@ -721,8 +721,8 @@ def validate_mobile(ctx, param, value): # noqa
@click.option("-s", "--state", default="active")
@click.option("-d", "--admin", default=False, type=bool)
def create_test_user(name, email, mobile_number, password, auth_type, state, admin):
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test"]:
current_app.logger.error("Can only be run in development")
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test", "staging"]:
current_app.logger.error("Can only be run in development, test, staging")
return
data = {