Skip to content

Commit

Permalink
Fix API tests for new storage settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Oct 26, 2024
1 parent 6314083 commit 6362f3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/core/tests/test_markers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
2 changes: 0 additions & 2 deletions src/core/tests/test_objects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

0 comments on commit 6362f3c

Please sign in to comment.