Merge branch '800-flask-command-for-test' of https://github.com/GSA/notifications-api into 800-flask-command-for-test

This commit is contained in:
Anastasia Gradova
2024-03-04 16:03:58 -07:00

View File

@@ -859,6 +859,9 @@ where possible to enable better maintainability.
@notify_command(name="add-test-organizations-to-db")
@click.option("-g", "--generate", required=True, prompt=True, default=1)
def add_test_organizations_to_db(generate):
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test"]:
current_app.logger.error("Can only be run in development")
return
def generate_gov_agency():
agency_names = [
"Bureau",