Use url_for
This commit is contained in:
parent
81635ae979
commit
cf1b30d6ca
@ -196,8 +196,10 @@ def test_user_can_only_access_apps_in_their_portfolio(client, user_session):
|
|||||||
|
|
||||||
# user can't view application members
|
# user can't view application members
|
||||||
response = client.get(
|
response = client.get(
|
||||||
"/portfolios/{}/applications/{}/members".format(
|
url_for(
|
||||||
portfolio.id, other_application.id
|
"portfolios.application_members",
|
||||||
|
portfolio_id=portfolio.id,
|
||||||
|
application_id=other_application.id,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
assert response.status_code == 404
|
assert response.status_code == 404
|
||||||
|
Loading…
x
Reference in New Issue
Block a user