Changement du refresh handler, soft reset d'ajouter sur beaucoup de formulaire de modification
CI - Security, Lint & Tests / validate (push) Failing after 1m3s
CI - Security, Lint & Tests / validate (push) Failing after 1m3s
This commit is contained in:
@@ -76,9 +76,7 @@ class TestTryoutGateEnforcement:
|
||||
assert 'closed' in html.lower() or 'open tryouts' in html.lower()
|
||||
|
||||
@pytest.mark.parametrize('role', NON_ADMIN_ROLES)
|
||||
def test_non_admin_cannot_edit_tryout_when_closed(
|
||||
self, app, client, as_role, make_user, role
|
||||
):
|
||||
def test_non_admin_cannot_edit_tryout_when_closed(self, app, client, as_role, make_user, role):
|
||||
# Create a tryout as admin first
|
||||
as_role('admin')
|
||||
client.post(
|
||||
@@ -119,7 +117,9 @@ class TestTryoutGateEnforcement:
|
||||
|
||||
as_role(role)
|
||||
response = client.post(
|
||||
f'/tryouts/{tryout_id}/delete', data={}, follow_redirects=True,
|
||||
f'/tryouts/{tryout_id}/delete',
|
||||
data={},
|
||||
follow_redirects=True,
|
||||
)
|
||||
html = response.data.decode()
|
||||
assert 'closed' in html.lower() or 'open tryouts' in html.lower()
|
||||
@@ -153,4 +153,4 @@ class TestTryoutGateEnforcement:
|
||||
data={'title': 'Admin Edited', 'game': 'Valorant', 'date': '2026-12-01'},
|
||||
follow_redirects=False,
|
||||
)
|
||||
assert _redirected(response) # success, not blocked
|
||||
assert _redirected(response) # success, not blocked
|
||||
|
||||
Reference in New Issue
Block a user