use correct route for create member macro
This commit is contained in:
parent
f075bd5c02
commit
de89bb03b0
@ -78,7 +78,7 @@
|
|||||||
application,
|
application,
|
||||||
members,
|
members,
|
||||||
new_member_form,
|
new_member_form,
|
||||||
"applications.settings",
|
"applications.create_member",
|
||||||
user_can(permissions.CREATE_APPLICATION_MEMBER)) }}
|
user_can(permissions.CREATE_APPLICATION_MEMBER)) }}
|
||||||
|
|
||||||
<div class='subheading'>
|
<div class='subheading'>
|
||||||
|
@ -87,6 +87,13 @@ def test_application_settings(client, user_session):
|
|||||||
url_for("applications.settings", application_id=application.id)
|
url_for("applications.settings", application_id=application.id)
|
||||||
)
|
)
|
||||||
assert response.status_code == 200
|
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):
|
def test_edit_application_environments_obj(app, client, user_session):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user