Skip to content

Commit c3adacc

Browse files
committed
style: update Content-Type header to use only application/json in test files
1 parent 28d0ff7 commit c3adacc

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

tests/test_custom_metadata_fields_ops.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def test_create_custom_metadata_fields_succeeds_with_type_number(self):
422422
},
423423
"httpStatusCode": 201,
424424
"headers": {
425-
"Content-Type": "text/plain, application/json",
425+
"Content-Type": "application/json",
426426
"Accept-Encoding": "gzip, deflate",
427427
"Authorization": "Basic ZmFrZTEyMjo=",
428428
},
@@ -493,7 +493,7 @@ def test_create_custom_metadata_fields_succeeds_with_type_textarea(self):
493493

494494
mock_response_metadata = {
495495
"headers": {
496-
"Content-Type": "text/plain, application/json",
496+
"Content-Type": "application/json",
497497
"Accept-Encoding": "gzip, deflate",
498498
"Authorization": "Basic ZmFrZTEyMjo=",
499499
},
@@ -575,7 +575,7 @@ def test_create_custom_metadata_fields_succeeds_with_type_date(self):
575575

576576
mock_response_metadata = {
577577
"headers": {
578-
"Content-Type": "text/plain, application/json",
578+
"Content-Type": "application/json",
579579
"Accept-Encoding": "gzip, deflate",
580580
"Authorization": "Basic ZmFrZTEyMjo=",
581581
},
@@ -653,7 +653,7 @@ def test_create_custom_metadata_fields_succeeds_with_type_boolean(self):
653653

654654
mock_response_metadata = {
655655
"headers": {
656-
"Content-Type": "text/plain, application/json",
656+
"Content-Type": "application/json",
657657
"Accept-Encoding": "gzip, deflate",
658658
"Authorization": "Basic ZmFrZTEyMjo=",
659659
},
@@ -729,7 +729,7 @@ def test_create_custom_metadata_fields_succeeds_with_type_single_select(self):
729729

730730
mock_response_metadata = {
731731
"headers": {
732-
"Content-Type": "text/plain, application/json",
732+
"Content-Type": "application/json",
733733
"Accept-Encoding": "gzip, deflate",
734734
"Authorization": "Basic ZmFrZTEyMjo=",
735735
},
@@ -809,7 +809,7 @@ def test_create_custom_metadata_fields_succeeds_with_type_multi_select(self):
809809

810810
mock_response_metadata = {
811811
"headers": {
812-
"Content-Type": "text/plain, application/json",
812+
"Content-Type": "application/json",
813813
"Accept-Encoding": "gzip, deflate",
814814
"Authorization": "Basic ZmFrZTEyMjo=",
815815
},
@@ -892,7 +892,7 @@ def test_update_custom_metadata_fields_succeeds(self):
892892
},
893893
"httpStatusCode": 200,
894894
"headers": {
895-
"Content-Type": "text/plain, application/json",
895+
"Content-Type": "application/json",
896896
"Accept-Encoding": "gzip, deflate",
897897
"Authorization": "Basic ZmFrZTEyMjo=",
898898
},

tests/test_files_ops.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def test_bulk_file_delete_succeeds(self):
11711171
"raw": {"successfullyDeletedFileIds": ["fake_123", "fake_222"]},
11721172
"httpStatusCode": 200,
11731173
"headers": {
1174-
"Content-Type": "text/plain, application/json",
1174+
"Content-Type": "application/json",
11751175
"Authorization": "Basic ZmFrZTEyMjo=",
11761176
},
11771177
}
@@ -1212,7 +1212,7 @@ def test_bulk_file_delete_succeeds_and_recieves_extra_non_breaking_changes_from_
12121212
"raw": {"successfullyDeletedFileIds": ["fake_123"],"nonDeletedFields":["fake_222"]},
12131213
"httpStatusCode": 200,
12141214
"headers": {
1215-
"Content-Type": "text/plain, application/json",
1215+
"Content-Type": "application/json",
12161216
"Authorization": "Basic ZmFrZTEyMjo=",
12171217
},
12181218
}
@@ -1304,7 +1304,7 @@ def test_file_delete_succeeds(self):
13041304

13051305
mock_response_metadata = {
13061306
"headers": {
1307-
"Content-Type": "text/plain, application/json",
1307+
"Content-Type": "application/json",
13081308
"Authorization": "Basic ZmFrZTEyMjo=",
13091309
},
13101310
"httpStatusCode": 204,
@@ -1750,7 +1750,7 @@ def test_update_file_details_succeeds_with_id(self):
17501750
)
17511751
mock_response_metadata = {
17521752
"headers": {
1753-
"Content-Type": "text/plain, application/json",
1753+
"Content-Type": "application/json",
17541754
"Authorization": "Basic ZmFrZTEyMjo=",
17551755
},
17561756
"http_status_code": 200,
@@ -1889,7 +1889,7 @@ def test_update_file_publish_status_succeeds_(self):
18891889
)
18901890
mock_response_metadata = {
18911891
"headers": {
1892-
"Content-Type": "text/plain, application/json",
1892+
"Content-Type": "application/json",
18931893
"Authorization": "Basic ZmFrZTEyMjo=",
18941894
},
18951895
"http_status_code": 200,
@@ -2228,7 +2228,7 @@ def test_get_file_versions_succeeds_with_id(self):
22282228
],
22292229
"http_status_code": 200,
22302230
"headers": {
2231-
"Content-Type": "text/plain, application/json",
2231+
"Content-Type": "application/json",
22322232
"Authorization": "Basic ZmFrZTEyMjo=",
22332233
},
22342234
}
@@ -2338,7 +2338,7 @@ def test_get_file_version_details_succeeds_with_id(self):
23382338
resp = self.client.get_file_version_details(self.file_id, self.version_id)
23392339
mock_response_metadata = {
23402340
"headers": {
2341-
"Content-Type": "text/plain, application/json",
2341+
"Content-Type": "application/json",
23422342
"Authorization": "Basic ZmFrZTEyMjo=",
23432343
},
23442344
"http_status_code": 200,
@@ -2471,7 +2471,7 @@ def test_delete_file_version_succeeds(self) -> None:
24712471

24722472
mock_response_metadata = {
24732473
"headers": {
2474-
"Content-Type": "text/plain, application/json",
2474+
"Content-Type": "application/json",
24752475
"Accept-Encoding": "gzip, deflate",
24762476
"Authorization": "Basic ZmFrZTEyMjo=",
24772477
},
@@ -2546,7 +2546,7 @@ def test_copy_file_succeeds(self) -> None:
25462546

25472547
mock_response_metadata = {
25482548
"headers": {
2549-
"Content-Type": "text/plain, application/json",
2549+
"Content-Type": "application/json",
25502550
"Accept-Encoding": "gzip, deflate",
25512551
"Authorization": "Basic ZmFrZTEyMjo=",
25522552
},
@@ -2592,7 +2592,7 @@ def test_copy_file_succeeds_without_include_file_versions(self) -> None:
25922592

25932593
mock_response_metadata = {
25942594
"headers": {
2595-
"Content-Type": "text/plain, application/json",
2595+
"Content-Type": "application/json",
25962596
"Accept-Encoding": "gzip, deflate",
25972597
"Authorization": "Basic ZmFrZTEyMjo=",
25982598
},
@@ -2673,7 +2673,7 @@ def test_move_file_succeeds(self) -> None:
26732673
)
26742674
mock_response_metadata = {
26752675
"headers": {
2676-
"Content-Type": "text/plain, application/json",
2676+
"Content-Type": "application/json",
26772677
"Accept-Encoding": "gzip, deflate",
26782678
"Authorization": "Basic ZmFrZTEyMjo=",
26792679
},
@@ -2763,7 +2763,7 @@ def test_rename_file_succeeds_with_purge_cache_false(self) -> None:
27632763

27642764
mock_response_metadata = {
27652765
"headers": {
2766-
"Content-Type": "text/plain, application/json",
2766+
"Content-Type": "application/json",
27672767
"Accept-Encoding": "gzip, deflate",
27682768
"Authorization": "Basic ZmFrZTEyMjo=",
27692769
},
@@ -2815,7 +2815,7 @@ def test_rename_file_succeeds_with_purge_cache(self) -> None:
28152815

28162816
mock_response_metadata = {
28172817
"headers": {
2818-
"Content-Type": "text/plain, application/json",
2818+
"Content-Type": "application/json",
28192819
"Accept-Encoding": "gzip, deflate",
28202820
"Authorization": "Basic ZmFrZTEyMjo=",
28212821
},
@@ -2859,7 +2859,7 @@ def test_rename_file_succeeds(self) -> None:
28592859
)
28602860
mock_response_metadata = {
28612861
"headers": {
2862-
"Content-Type": "text/plain, application/json",
2862+
"Content-Type": "application/json",
28632863
"Accept-Encoding": "gzip, deflate",
28642864
"Authorization": "Basic ZmFrZTEyMjo=",
28652865
},
@@ -2966,7 +2966,7 @@ def test_restore_file_version_succeeds(self) -> None:
29662966

29672967
mock_response_metadata = {
29682968
"headers": {
2969-
"Content-Type": "text/plain, application/json",
2969+
"Content-Type": "application/json",
29702970
"Accept-Encoding": "gzip, deflate",
29712971
"Authorization": "Basic ZmFrZTEyMjo=",
29722972
},

tests/test_tags_ops.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_add_tags_succeeds(self):
7373
)
7474
mock_response_metadata = {
7575
"headers": {
76-
"Content-Type": "text/plain, application/json",
76+
"Content-Type": "application/json",
7777
"Authorization": "Basic ZmFrZTEyMjo=",
7878
},
7979
"httpStatusCode": 200,
@@ -170,7 +170,7 @@ def test_remove_tags_succeeds(self):
170170
)
171171
mock_response_metadata = {
172172
"headers": {
173-
"Content-Type": "text/plain, application/json",
173+
"Content-Type": "application/json",
174174
"Authorization": "Basic ZmFrZTEyMjo=",
175175
},
176176
"httpStatusCode": 200,
@@ -280,7 +280,7 @@ def test_remove_ai_tags_succeeds(self):
280280
)
281281
mock_response_metadata = {
282282
"headers": {
283-
"Content-Type": "text/plain, application/json",
283+
"Content-Type": "application/json",
284284
"Authorization": "Basic ZmFrZTEyMjo=",
285285
},
286286
"httpStatusCode": 200,

0 commit comments

Comments
 (0)