Skip to content

Commit 3ed267f

Browse files
committed
test: fix
1 parent 342d701 commit 3ed267f

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-22.04
88
strategy:
99
matrix:
10-
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
10+
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13']
1111
urllib3-line: ["lt2", "ge2"]
1212
exclude:
1313
- python: "3.7"

tests/test_custom_metadata_fields_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def test_delete_custom_metadata_fields_succeeds(self):
303303
URL.API_BASE_URL = "http://test.com"
304304
url = "{}/v1/customMetadataFields/{}".format(URL.API_BASE_URL, self.field_id)
305305
headers = create_headers_for_test()
306-
responses.add(responses.DELETE, url, status=204, headers=headers, body="{}")
306+
responses.add(responses.DELETE, url, status=204, headers=headers)
307307
resp = self.client.delete_custom_metadata_field(self.field_id)
308308

309309
mock_response_metadata = {

tests/test_files_ops.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ def test_file_delete_succeeds(self):
12981298
headers = {"Content-Type": "application/json"}
12991299
headers.update(get_auth_headers_for_test())
13001300

1301-
responses.add(responses.DELETE, url, body="{}", status=204, headers=headers)
1301+
responses.add(responses.DELETE, url , status=204, headers=headers)
13021302

13031303
resp = self.client.delete_file(self.file_id)
13041304

@@ -2466,7 +2466,7 @@ def test_delete_file_version_succeeds(self) -> None:
24662466
)
24672467
headers = {"Content-Type": "application/json"}
24682468
headers.update(create_headers_for_test())
2469-
responses.add(responses.DELETE, url, status=204, headers=headers, body="{}")
2469+
responses.add(responses.DELETE, url, status=204, headers=headers )
24702470
resp = self.client.delete_file_version(self.file_id, self.version_id)
24712471

24722472
mock_response_metadata = {
@@ -2534,7 +2534,7 @@ def test_copy_file_succeeds(self) -> None:
25342534
url = "{}/v1/files/copy".format(URL.API_BASE_URL)
25352535
headers = {"Content-Type": "application/json"}
25362536
headers.update(create_headers_for_test())
2537-
responses.add(responses.POST, url, status=204, headers=headers, body="{}")
2537+
responses.add(responses.POST, url, status=204, headers=headers)
25382538

25392539
resp = self.client.copy_file(
25402540
options=CopyFileRequestOptions(
@@ -2581,7 +2581,7 @@ def test_copy_file_succeeds_without_include_file_versions(self) -> None:
25812581
url = "{}/v1/files/copy".format(URL.API_BASE_URL)
25822582
headers = {"Content-Type": "application/json"}
25832583
headers.update(create_headers_for_test())
2584-
responses.add(responses.POST, url, status=204, headers=headers, body="{}")
2584+
responses.add(responses.POST, url, status=204, headers=headers )
25852585

25862586
resp = self.client.copy_file(
25872587
options=CopyFileRequestOptions(
@@ -2663,7 +2663,7 @@ def test_move_file_succeeds(self) -> None:
26632663
url = "{}/v1/files/move".format(URL.API_BASE_URL)
26642664
headers = {"Content-Type": "application/json"}
26652665
headers.update(create_headers_for_test())
2666-
responses.add(responses.POST, url, status=204, headers=headers, body="{}")
2666+
responses.add(responses.POST, url, status=204, headers=headers )
26672667

26682668
resp = self.client.move_file(
26692669
options=MoveFileRequestOptions(

tests/test_folder_ops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ def test_delete_folder_succeeds(self):
154154
responses.DELETE,
155155
url,
156156
status=204,
157-
body="{}",
158157
)
159158
resp = self.client.delete_folder(
160159
options=DeleteFolderRequestOptions(folder_path="/folderName")

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36, py37, py38, py39, py310
2+
envlist = py36, py37, py38, py39, py310, py311, py312, py313
33
skipsdist = True
44

55
[testenv]

0 commit comments

Comments
 (0)