From b29f2f88d0f07310c67ec1afce3e47248d11ac63 Mon Sep 17 00:00:00 2001 From: jessicamack Date: Thu, 9 Feb 2023 14:32:16 -0500 Subject: [PATCH] updated tests to be in line with clear_setting_cache changes Signed-off-by: jessicamack --- awx/main/tests/functional/api/test_settings.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/awx/main/tests/functional/api/test_settings.py b/awx/main/tests/functional/api/test_settings.py index eb57f27e14..bcfa499af3 100644 --- a/awx/main/tests/functional/api/test_settings.py +++ b/awx/main/tests/functional/api/test_settings.py @@ -294,7 +294,6 @@ def test_logging_aggregator_valid_settings(put, post, admin, type, host, port, u mock_settings['LOG_AGGREGATOR_PASSWORD'] = password # mock testing pg_notify mocker.patch("awx.conf.views.send_pg_notify", return_value=None) - mocker.patch("awx.main.tasks.system.send_pg_notify", return_value=None) url = reverse('api:setting_singleton_detail', kwargs={'category_slug': 'logging'}) response = put(url, data=mock_settings, user=admin, expect=200) assert type in response.data.get('LOG_AGGREGATOR_TYPE') @@ -317,7 +316,6 @@ def test_logging_aggregator_connection_test_valid(put, post, admin, mocker): mock_settings['LOG_AGGREGATOR_HOST'] = host # mock testing pg_notify mocker.patch("awx.conf.views.send_pg_notify", return_value=None) - mocker.patch("awx.main.tasks.system.send_pg_notify", return_value=None) # POST to save these mock settings url = reverse('api:setting_singleton_detail', kwargs={'category_slug': 'logging'}) put(url, data=mock_settings, user=admin, expect=200)