Skip to content

Commit

Permalink
Fix some unit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Aug 29, 2023
1 parent 65ba019 commit b639fe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qgreenland/test/util/config/test_config_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions qgreenland/test/util/test_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b639fe2

Please sign in to comment.