@@ -1155,7 +1155,7 @@ def test_bulk_file_delete_succeeds(self):
11551155
11561156 URL.API_BASE_URL = "http://test.com"
11571157 url = URL.API_BASE_URL + "/v1/files" + URL.BULK_FILE_DELETE
1158- headers = {"Content-Type": "application/json" }
1158+ headers = {}
11591159 headers.update(get_auth_headers_for_test())
11601160
11611161 responses.add(
@@ -1197,7 +1197,7 @@ def test_bulk_file_delete_succeeds_and_recieves_extra_non_breaking_changes_from_
11971197
11981198 URL.API_BASE_URL = "http://test.com"
11991199 url = URL.API_BASE_URL + "/v1/files" + URL.BULK_FILE_DELETE
1200- headers = {"Content-Type": "application/json" }
1200+ headers = {}
12011201 headers.update(get_auth_headers_for_test())
12021202
12031203 responses.add(
@@ -1237,7 +1237,7 @@ def test_bulk_file_delete_fails_with_404_exception(self) -> None:
12371237
12381238 URL.API_BASE_URL = "http://test.com"
12391239 url = URL.API_BASE_URL + "/v1/files" + URL.BULK_FILE_DELETE
1240- headers = {"Content-Type": "application/json" }
1240+ headers = {}
12411241 headers.update(get_auth_headers_for_test())
12421242 try:
12431243 responses.add(
@@ -1269,7 +1269,7 @@ def test_file_delete_fails_with_400_exception(self):
12691269
12701270 URL.API_BASE_URL = "http://test.com"
12711271 url = "{}/v1/files/{}".format(URL.API_BASE_URL, self.file_id)
1272- headers = {"Content-Type": "application/json" }
1272+ headers = {}
12731273 headers.update(get_auth_headers_for_test())
12741274 try:
12751275 responses.add(
@@ -1297,7 +1297,7 @@ def test_file_delete_succeeds(self):
12971297 """
12981298 URL.API_BASE_URL = "http://test.com"
12991299 url = "{}/v1/files/{}".format(URL.API_BASE_URL, self.file_id)
1300- headers = {"Content-Type": "application/json" }
1300+ headers = {}
13011301 headers.update(get_auth_headers_for_test())
13021302
13031303 responses.add(responses.DELETE, url , status=204, headers=headers, content_type="application/json")
@@ -1656,7 +1656,7 @@ def test_update_file_details_succeeds_with_id(self):
16561656 """
16571657 URL.API_BASE_URL = "http://test.com"
16581658 url = "{}/v1/files/{}/details/".format(URL.API_BASE_URL, self.file_id)
1659- headers = {"Content-Type": "application/json" }
1659+ headers = {}
16601660 headers.update(get_auth_headers_for_test())
16611661 responses.add(
16621662 responses.PATCH,
@@ -1818,7 +1818,7 @@ def test_update_file_publish_status_succeeds_(self):
18181818 """
18191819 URL.API_BASE_URL = "http://test.com"
18201820 url = "{}/v1/files/{}/details/".format(URL.API_BASE_URL, self.file_id)
1821- headers = {"Content-Type": "application/json" }
1821+ headers = {}
18221822 headers.update(get_auth_headers_for_test())
18231823 responses.add(
18241824 responses.PATCH,
@@ -2032,7 +2032,7 @@ def test_get_file_versions_succeeds_with_id(self):
20322032 URL.API_BASE_URL = "http://test.com"
20332033 url = "{}/v1/files/{}/versions".format(URL.API_BASE_URL, self.file_id)
20342034
2035- headers = {"Content-Type": "application/json" }
2035+ headers = {}
20362036 headers.update(get_auth_headers_for_test())
20372037 responses.add(
20382038 responses.GET,
@@ -2300,7 +2300,7 @@ def test_get_file_version_details_succeeds_with_id(self):
23002300 URL.API_BASE_URL, self.file_id, self.version_id
23012301 )
23022302
2303- headers = {"Content-Type": "application/json" }
2303+ headers = {}
23042304 headers.update(get_auth_headers_for_test())
23052305 responses.add(
23062306 responses.GET,
@@ -2470,7 +2470,7 @@ def test_delete_file_version_succeeds(self) -> None:
24702470 url = "{}/v1/files/{}/versions/{}".format(
24712471 URL.API_BASE_URL, self.file_id, self.version_id
24722472 )
2473- headers = {"Content-Type": "application/json" }
2473+ headers = {}
24742474 headers.update(create_headers_for_test())
24752475 responses.add(responses.DELETE, url, status=204, headers=headers, content_type="application/json")
24762476 resp = self.client.delete_file_version(self.file_id, self.version_id)
@@ -2506,7 +2506,7 @@ def test_copy_file_fails_with_404(self) -> None:
25062506
25072507 URL.API_BASE_URL = "http://test.com"
25082508 url = "{}/v1/files/copy".format(URL.API_BASE_URL)
2509- headers = {"Content-Type": "application/json" }
2509+ headers = {}
25102510 headers.update(create_headers_for_test())
25112511 responses.add(
25122512 responses.POST,
@@ -2538,7 +2538,7 @@ def test_copy_file_succeeds(self) -> None:
25382538
25392539 URL.API_BASE_URL = "http://test.com"
25402540 url = "{}/v1/files/copy".format(URL.API_BASE_URL)
2541- headers = {"Content-Type": "application/json" }
2541+ headers = {}
25422542 headers.update(create_headers_for_test())
25432543 responses.add(responses.POST, url, status=204, headers=headers, content_type="application/json")
25442544
@@ -2585,7 +2585,7 @@ def test_copy_file_succeeds_without_include_file_versions(self) -> None:
25852585
25862586 URL.API_BASE_URL = "http://test.com"
25872587 url = "{}/v1/files/copy".format(URL.API_BASE_URL)
2588- headers = {"Content-Type": "application/json" }
2588+ headers = {}
25892589 headers.update(create_headers_for_test())
25902590 responses.add(responses.POST, url, status=204, headers=headers, content_type="application/json")
25912591
@@ -2636,7 +2636,7 @@ def test_move_file_fails_with_404(self) -> None:
26362636
26372637 URL.API_BASE_URL = "http://test.com"
26382638 url = "{}/v1/files/move".format(URL.API_BASE_URL)
2639- headers = {"Content-Type": "application/json" }
2639+ headers = {}
26402640 headers.update(create_headers_for_test())
26412641 responses.add(
26422642 responses.POST,
@@ -2667,7 +2667,7 @@ def test_move_file_succeeds(self) -> None:
26672667
26682668 URL.API_BASE_URL = "http://test.com"
26692669 url = "{}/v1/files/move".format(URL.API_BASE_URL)
2670- headers = {"Content-Type": "application/json" }
2670+ headers = {}
26712671 headers.update(create_headers_for_test())
26722672 responses.add(responses.POST, url, status=204, headers=headers, content_type="application/json")
26732673
@@ -2717,7 +2717,7 @@ def test_rename_file_fails_with_409(self) -> None:
27172717
27182718 URL.API_BASE_URL = "http://test.com"
27192719 url = "{}/v1/files/rename".format(URL.API_BASE_URL)
2720- headers = {"Content-Type": "application/json" }
2720+ headers = {}
27212721 headers.update(create_headers_for_test())
27222722 try:
27232723 responses.add(
@@ -2751,7 +2751,7 @@ def test_rename_file_succeeds_with_purge_cache_false(self) -> None:
27512751
27522752 URL.API_BASE_URL = "http://test.com"
27532753 url = "{}/v1/files/rename".format(URL.API_BASE_URL)
2754- headers = {"Content-Type": "application/json" }
2754+ headers = {}
27552755 headers.update(create_headers_for_test())
27562756 responses.add(
27572757 responses.PUT,
@@ -2804,7 +2804,7 @@ def test_rename_file_succeeds_with_purge_cache(self) -> None:
28042804
28052805 URL.API_BASE_URL = "http://test.com"
28062806 url = "{}/v1/files/rename".format(URL.API_BASE_URL)
2807- headers = {"Content-Type": "application/json" }
2807+ headers = {}
28082808 headers.update(create_headers_for_test())
28092809 responses.add(
28102810 responses.PUT,
@@ -2857,9 +2857,9 @@ def test_rename_file_succeeds(self) -> None:
28572857
28582858 URL.API_BASE_URL = "http://test.com"
28592859 url = "{}/v1/files/rename".format(URL.API_BASE_URL)
2860- headers = {"Content-Type": "application/json" }
2860+ headers = {}
28612861 headers.update(create_headers_for_test())
2862- responses.add(responses.PUT, url, headers=headers, body="{}")
2862+ responses.add(responses.PUT, url, headers=headers, body="{}", content_type="application/json" )
28632863 resp = self.client.rename_file(
28642864 options=RenameFileRequestOptions(
28652865 file_path=self.file_path, new_file_name=self.new_file_name
@@ -2929,7 +2929,7 @@ def test_restore_file_version_succeeds(self) -> None:
29292929 url = "{}/v1/files/{}/versions/{}/restore".format(
29302930 URL.API_BASE_URL, self.file_id, self.version_id
29312931 )
2932- headers = {"Content-Type": "application/json" }
2932+ headers = {}
29332933 headers.update(create_headers_for_test())
29342934 responses.add(
29352935 responses.PUT,
@@ -3018,7 +3018,7 @@ def test_restore_file_version_succeeds(self) -> None:
30183018 def test_get_metadata_with_non_breaking_changes_in_response(self):
30193019 URL.API_BASE_URL = "http://test.com"
30203020 url = "{}/v1/files/{}/metadata".format(URL.API_BASE_URL, self.file_id)
3021- headers = {"Content-Type": "application/json" }
3021+ headers = {}
30223022 headers.update(create_headers_for_test())
30233023 responses.add(
30243024 responses.GET,
0 commit comments