From 89f2e39f6a33ded4685af41eb3630f2dc918df15 Mon Sep 17 00:00:00 2001 From: Danny Webb Date: Wed, 9 Oct 2024 08:51:33 +0100 Subject: [PATCH] fix mock ordering --- .../grafana/grafana_silence/test_grafana_silence.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/modules/grafana/grafana_silence/test_grafana_silence.py b/tests/unit/modules/grafana/grafana_silence/test_grafana_silence.py index 716e5fdf..d1941060 100644 --- a/tests/unit/modules/grafana/grafana_silence/test_grafana_silence.py +++ b/tests/unit/modules/grafana/grafana_silence/test_grafana_silence.py @@ -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, @@ -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