Skip to content

Commit

Permalink
avoid deps problems
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jul 1, 2024
1 parent c56cca6 commit 3de9981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions georiviere/portal/tests/test_views/test_contribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def test_create(self):
"field_boolean": True,
"contributed_at": "2020-01-01T00:00"
}
response = self.client.post(self.get_contribution_url(), data=data)
response = self.client.post(self.get_contribution_url(), data=data, format='json')
data = response.json()
self.assertEqual(response.status_code, 201, data)

Expand All @@ -385,7 +385,7 @@ def test_null_values_on_not_required(self):
"field_float": 1.1,
"contributed_at": "2020-01-01T00:00"
}
response = self.client.post(self.get_contribution_url(), data=data)
response = self.client.post(self.get_contribution_url(), data=data, format='json')
data = response.json()
self.assertEqual(response.status_code, 201, data)
self.assertEqual(data['field_float'], 1.1)
Expand Down
1 change: 0 additions & 1 deletion georiviere/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def construct_relative_path_mock(current_template_name, relative_name):
)

REST_FRAMEWORK = {
"TEST_REQUEST_DEFAULT_FORMAT": "json",
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
"DEFAULT_PARSER_CLASSES": (
"rest_framework.parsers.JSONParser",
Expand Down

0 comments on commit 3de9981

Please sign in to comment.