Skip to content

Commit

Permalink
test: mock test called once with to with
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed May 27, 2024
1 parent 1c6bd4d commit c16384c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_create_silence_new_silence(
}
],
)
mock_fetch_url.assert_called_once_with(
mock_fetch_url.assert_called_with(
module,
"https://grafana.example.com/api/alertmanager/grafana/api/v2/silences",
data=json.dumps(
Expand Down Expand Up @@ -198,7 +198,7 @@ def test_delete_silence(self, mock_fetch_url, mock_get_version):
grafana_iface = grafana_silence.GrafanaSilenceInterface(module)
silence_id = "470b7116-8f06-4bb6-9e6c-6258aa92218e"
result = grafana_iface.delete_silence(silence_id)
mock_fetch_url.assert_called_once_with(
mock_fetch_url.assert_called_with(
module,
"https://grafana.example.com/api/alertmanager/grafana/api/v2/silence/470b7116-8f06-4bb6-9e6c-6258aa92218e",
data=None,
Expand Down

0 comments on commit c16384c

Please sign in to comment.