diff --git a/lizmap_server/core.py b/lizmap_server/core.py index 22135838..f189e812 100755 --- a/lizmap_server/core.py +++ b/lizmap_server/core.py @@ -82,7 +82,7 @@ def find_vector_layer(layer_name: str, project: QgsProject) -> Optional[QgsVecto if not found.isValid(): Logger.warning( f"The vector layer '{layer_name}' has been found but it is not valid in the project " - f"'{project.fileName()}'" + f"'{project.fileName()}'", ) return found diff --git a/lizmap_server/get_legend_graphic.py b/lizmap_server/get_legend_graphic.py index 117227e6..7d61bf01 100644 --- a/lizmap_server/get_legend_graphic.py +++ b/lizmap_server/get_legend_graphic.py @@ -94,7 +94,7 @@ def responseComplete(self): if not layer.isValid(): logger.warning( f"Layer '{layer_name}' is not valid, returning a warning icon in the legend for project " - f"'{project.homePath()}'" + f"'{project.homePath()}'", ) json_data = { 'title': '', diff --git a/test/test_filter_by_polygon.py b/test/test_filter_by_polygon.py index 78cdc91b..e9c11183 100644 --- a/test/test_filter_by_polygon.py +++ b/test/test_filter_by_polygon.py @@ -17,6 +17,7 @@ __license__ = 'GPL version 3' __email__ = 'info@3liz.org' + class TestFilterByPolygon(unittest.TestCase): def test_not_filtered_layer(self):