use correct route for create member macro

This commit is contained in:
graham-dds 2019-10-02 12:17:30 -04:00
parent f075bd5c02
commit de89bb03b0
2 changed files with 8 additions and 1 deletions

View File

@ -78,7 +78,7 @@
application,
members,
new_member_form,
"applications.settings",
"applications.create_member",
user_can(permissions.CREATE_APPLICATION_MEMBER)) }}
<div class='subheading'>

View File

@ -87,6 +87,13 @@ def test_application_settings(client, user_session):
url_for("applications.settings", application_id=application.id)
)
assert response.status_code == 200
# the assertion below is a quick check to prevent regressions -- this ensures that
# the correct URL for creating a member for an application is _somewhere_ in
# the settings page.
assert (
url_for("applications.create_member", application_id=application.id)
in response.data.decode()
)
def test_edit_application_environments_obj(app, client, user_session):