Skip to content

Commit 145d0df

Browse files
author
Serhiy Yevtushenko
committed
fix: attempt to fix test.
1 parent 49b4a68 commit 145d0df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/elements/test_alertingprovisioning.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,7 @@ def test_update_alertrule_disable_provenance(self, m):
118118

119119
@requests_mock.Mocker()
120120
def test_delete_notification_policy_tree(self, m):
121-
m.delete("http://localhost/api/v1/provisioning/policies")
121+
JSON_RESPONSE = {"receiver": "grafana-default-email", "group_by": ["grafana_folder", "alertname"]}
122+
123+
m.delete("http://localhost/api/v1/provisioning/policies", json=JSON_RESPONSE)
122124
self.grafana.alertingprovisioning.delete_notification_policy_tree()

0 commit comments

Comments
 (0)