Skip to content

Commit

Permalink
add remove default content-type test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevchentw committed Feb 22, 2022
1 parent cfe9482 commit 90927af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_select_header_content_type(self):

content_types = []
content_type = self.api_client.select_header_content_type(content_types)
self.assertEqual(content_type, 'application/json')
self.assertEqual(content_type, None)

content_types = ['application/json-patch+json', 'application/json']
content_type = self.api_client.select_header_content_type(content_types,
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/python/tests/test_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_select_header_content_type(self):

content_types = []
content_type = self.api_client.select_header_content_type(content_types)
self.assertEqual(content_type, 'application/json')
self.assertEqual(content_type, None)

content_types = ['application/json-patch+json', 'application/json']
content_type = self.api_client.select_header_content_type(content_types,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_select_header_content_type(self):

content_types = []
content_type = self.api_client.select_header_content_type(content_types)
self.assertEqual(content_type, 'application/json')
self.assertEqual(content_type, None)

def test_sanitize_for_serialization(self):
# None
Expand Down

0 comments on commit 90927af

Please sign in to comment.