Skip to content

Commit

Permalink
fix mock ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-s-webb committed Oct 9, 2024
1 parent e59c96a commit d29a845
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ def test_create_silence_new_silence(

# create a new silence with alertmanager datasource defined
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_silence"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_version"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_silence"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_version"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.fetch_url"
Expand Down Expand Up @@ -306,10 +306,10 @@ def test_delete_silence(self, mock_fetch_url, mock_get_version):
self.assertEquals(result, {"message": "silence deleted"})

@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_version"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_version"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.fetch_url"
Expand Down

0 comments on commit d29a845

Please sign in to comment.