Skip to content

Commit

Permalink
Fix failing home view test after changing audit log permissions (apac…
Browse files Browse the repository at this point in the history
…he#37550)

Yet another test was failing after changing audit log permissions
in apache#37501
  • Loading branch information
potiuk authored and sunank200 committed Feb 21, 2024
1 parent 34f359f commit 794010f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/www/views/test_views_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,16 @@ def test_dashboard_flash_messages_type(user_client):
check_content_in_response("alert-foo", resp)


def test_audit_log_view(user_client, working_dags):
resp = user_client.get("/dags/filter_test_1/audit_log")
def test_audit_log_view_admin(admin_client, working_dags):
resp = admin_client.get("/dags/filter_test_1/audit_log")
check_content_in_response("Dag Audit Log", resp)


def test_audit_log_view_user(user_client, working_dags):
resp = user_client.get("/dags/filter_test_1/audit_log")
check_content_not_in_response("Dag Audit Log", resp, resp_code=302)


@pytest.mark.parametrize(
"url, lower_key, greater_key",
[
Expand Down

0 comments on commit 794010f

Please sign in to comment.