From 88923ad1c4b232a00fbbcf07e10b694a420ab353 Mon Sep 17 00:00:00 2001 From: Xpirix Date: Mon, 6 Jan 2025 12:17:02 +0300 Subject: [PATCH] Fix unit test --- qgis-app/plugins/tests/test_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qgis-app/plugins/tests/test_task.py b/qgis-app/plugins/tests/test_task.py index 7cf22545..483d7f0c 100644 --- a/qgis-app/plugins/tests/test_task.py +++ b/qgis-app/plugins/tests/test_task.py @@ -46,7 +46,7 @@ def test_generate_plugins_xml(self, mock_open, mock_mkdir, mock_exists, mock_get # Given mock_response = MagicMock() mock_response.status_code = 200 - mock_response.text = '' + mock_response.text = ' QGIS Version 34002|Visit https://download.qgis.org to get your copy of version 3.40.2' mock_get.return_value = mock_response preferences.SitePreference.qgis_versions = '3.24,3.25' @@ -74,7 +74,7 @@ def test_generate_plugins_xml_with_custom_site(self, mock_open, mock_mkdir, mock # Given mock_response = MagicMock() mock_response.status_code = 200 - mock_response.text = '' + mock_response.text = ' QGIS Version 34002|Visit https://download.qgis.org to get your copy of version 3.40.2' mock_get.return_value = mock_response preferences.SitePreference.qgis_versions = '3.24,3.25'