From b639fe25e5fbbb07b3c2861fa5b267c3cf7de7d7 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Tue, 29 Aug 2023 16:44:44 -0600 Subject: [PATCH] Fix some unit test failures --- qgreenland/test/util/config/test_config_export.py | 2 +- qgreenland/test/util/test_qgis.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qgreenland/test/util/config/test_config_export.py b/qgreenland/test/util/config/test_config_export.py index 51af24cd..71de1262 100644 --- a/qgreenland/test/util/config/test_config_export.py +++ b/qgreenland/test/util/config/test_config_export.py @@ -8,7 +8,7 @@ @patch( - "qgreenland.util.layer.COMPILE_PACKAGE_DIR", + "qgreenland.util.misc.COMPILE_PACKAGE_DIR", new=MOCK_COMPILE_PACKAGE_DIR, ) def test_export_config_csv(full_cfg): diff --git a/qgreenland/test/util/test_qgis.py b/qgreenland/test/util/test_qgis.py index aed8d866..6a190298 100644 --- a/qgreenland/test/util/test_qgis.py +++ b/qgreenland/test/util/test_qgis.py @@ -22,7 +22,7 @@ def test_make_map_layer_online(self, online_layer_node): assert result.name() == online_layer_node.layer_cfg.title @patch( - "qgreenland.util.layer.COMPILE_PACKAGE_DIR", + "qgreenland.util.misc.COMPILE_PACKAGE_DIR", new=MOCK_COMPILE_PACKAGE_DIR, ) def test_make_map_layer_raster(self, raster_layer_node): @@ -50,7 +50,7 @@ def test_make_map_layer_raster(self, raster_layer_node): assert result.name() == raster_layer_node.layer_cfg.title @patch( - "qgreenland.util.layer.COMPILE_PACKAGE_DIR", + "qgreenland.util.misc.COMPILE_PACKAGE_DIR", new=MOCK_COMPILE_PACKAGE_DIR, ) def test_add_layer_metadata(self, raster_layer_node): @@ -79,7 +79,7 @@ def test_add_layer_metadata(self, raster_layer_node): assert expected_extent == meta_extent.bounds.toRectangle() @patch( - "qgreenland.util.layer.COMPILE_PACKAGE_DIR", + "qgreenland.util.misc.COMPILE_PACKAGE_DIR", new=MOCK_COMPILE_PACKAGE_DIR, ) def test__add_layers_and_groups(self, raster_layer_node):