notify-admin-762 fix tests

This commit is contained in:
Kenneth Kehl
2023-09-19 14:30:32 -07:00
parent 4753be56c2
commit e3490691d3
4 changed files with 13 additions and 44 deletions

View File

@@ -45,10 +45,11 @@ def _create_example_template(service_id):
@user_is_gov_user
def add_service():
default_organization_type = current_user.default_organization_type
if default_organization_type is None:
default_organization_type = "federal"
form = CreateServiceForm(
# avoid setting a default for now; the US gov email addresses aren't as useful as the UK
# ones for guessing the org type
organization_type=None
# This value is currently not useful but if it is not set it will result in a bug
organization_type=default_organization_type
)
if form.validate_on_submit():

View File

@@ -18,11 +18,9 @@
{{ form.name(param_extensions={"hint": {"text": "You can change this later"}}) }}
<!--See add_service.py the default_organization_type is not currently useful for Notify.gov
and here it is causing an issue where services can't be created -->
<!--{% if not default_organization_type %}-->
<!--{% if not default_organization_type %}
{{ form.organization_type }}
<!--{% endif %}-->
{% endif %}-->
{{ page_footer('Add service') }}