From d5210a48cd089d3b17721ce16ef1515a1913faed Mon Sep 17 00:00:00 2001 From: Mattia Date: Tue, 15 Oct 2024 17:28:40 +0200 Subject: [PATCH] [Fixes #12368] Fix sld serializer --- geonode/upload/handlers/sld/tests.py | 2 +- geonode/upload/handlers/xml/tests.py | 2 +- geonode/upload/tests/unit/test_task.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geonode/upload/handlers/sld/tests.py b/geonode/upload/handlers/sld/tests.py index f347f3daf41..1864ba2dee1 100644 --- a/geonode/upload/handlers/sld/tests.py +++ b/geonode/upload/handlers/sld/tests.py @@ -89,7 +89,7 @@ def test_can_successfully_import_metadata_file(self): step="step", input_params={ "files": self.valid_files, - "dataset_title": self.layer.alternate, + "resource_pk": self.layer.pk, "skip_existing_layer": True, "handler_module_path": str(self.handler), }, diff --git a/geonode/upload/handlers/xml/tests.py b/geonode/upload/handlers/xml/tests.py index 144abd2560a..af9916a1fc8 100644 --- a/geonode/upload/handlers/xml/tests.py +++ b/geonode/upload/handlers/xml/tests.py @@ -87,7 +87,7 @@ def test_can_successfully_import_metadata_file(self): step="step", input_params={ "files": self.valid_files, - "dataset_title": self.layer.alternate, + "resource_pk": self.layer.pk, "skip_existing_layer": True, "handler_module_path": str(self.handler), }, diff --git a/geonode/upload/tests/unit/test_task.py b/geonode/upload/tests/unit/test_task.py index 5d6b626c24e..1f374da4112 100644 --- a/geonode/upload/tests/unit/test_task.py +++ b/geonode/upload/tests/unit/test_task.py @@ -496,7 +496,7 @@ def test_import_metadata_should_work_as_expected(self): step="step", input_params={ "files": valid_files, - "dataset_title": layer.alternate, + "resource_pk": layer.pk, "skip_existing_layer": True, "handler_module_path": str(handler), },