From 6362f3c72b4e5b84870db4d4a8f72b87661f4895 Mon Sep 17 00:00:00 2001 From: Pablo Silva Date: Sat, 26 Oct 2024 20:41:59 +0100 Subject: [PATCH] Fix API tests for new storage settings --- src/core/tests/test_markers_api.py | 2 -- src/core/tests/test_objects_api.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/core/tests/test_markers_api.py b/src/core/tests/test_markers_api.py index ab68ac22..648d6dbd 100644 --- a/src/core/tests/test_markers_api.py +++ b/src/core/tests/test_markers_api.py @@ -34,7 +34,6 @@ def test_api_markers_lists_one_marker(self): self.assertEqual(data["previous"], None) first_result = data["results"][0] serializer_data = MarkerSerializer(marker).data - serializer_data["source"] = "http://testserver" + serializer_data["source"] # Asserts the serializer is being used by the endpoint self.assertDictEqual(first_result, serializer_data) @@ -68,6 +67,5 @@ def test_retrieve_marker(self): self.assertEqual(response.status_code, 200) data = response.json() serializer_data = MarkerSerializer(marker).data - serializer_data["source"] = "http://testserver" + serializer_data["source"] # Asserts the serializer is being used by the endpoint self.assertDictEqual(data, serializer_data) diff --git a/src/core/tests/test_objects_api.py b/src/core/tests/test_objects_api.py index 621cc942..2a5aef3c 100644 --- a/src/core/tests/test_objects_api.py +++ b/src/core/tests/test_objects_api.py @@ -34,7 +34,6 @@ def test_api_objects_lists_one_object(self): self.assertEqual(data["previous"], None) first_result = data["results"][0] serializer_data = ObjectSerializer(obj).data - serializer_data["source"] = "http://testserver" + serializer_data["source"] # Asserts the serializer is being used by the endpoint self.assertDictEqual(first_result, serializer_data) @@ -70,6 +69,5 @@ def test_retrieve_object(self): self.assertEqual(response.status_code, 200) data = response.json() serializer_data = ObjectSerializer(obj).data - serializer_data["source"] = "http://testserver" + serializer_data["source"] # Asserts the serializer is being used by the endpoint self.assertDictEqual(data, serializer_data)