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 89f2e39
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ def test_create_silence_new_silence(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_version"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.fetch_url"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.fetch_url"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
)
def test_create_silence_new_silence_with_datasource(
self,
Expand Down Expand Up @@ -309,10 +309,10 @@ def test_delete_silence(self, mock_fetch_url, mock_get_version):
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.get_version"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.fetch_url"
)
@patch(
"ansible_collections.community.grafana.plugins.modules.grafana_silence.fetch_url"
"ansible_collections.community.grafana.plugins.modules.grafana_silence.GrafanaSilenceInterface.datasource_by_name"
)
def test_delete_silence_with_datasource(
self, mock_fetch_url, mock_get_version, mock_datasource_by_name
Expand Down

0 comments on commit 89f2e39

Please sign in to comment.