Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/tests/api/test_collection_post_binary.py
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | |||||
): | ): | ||||
"""Binary upload must not exceed the limit set up... | """Binary upload must not exceed the limit set up... | ||||
""" | """ | ||||
tmp_path = str(tmp_path) | tmp_path = str(tmp_path) | ||||
url = reverse(COL_IRI, args=[deposit_collection.name]) | url = reverse(COL_IRI, args=[deposit_collection.name]) | ||||
archive = create_arborescence_archive( | archive = create_arborescence_archive( | ||||
tmp_path, "archive2", "file2", b"some content in file", up_to_size=500 | tmp_path, "archive2", "file2", b"some content in file", up_to_size=5000 | ||||
) | ) | ||||
external_id = "some-external-id" | external_id = "some-external-id" | ||||
# when | # when | ||||
response = post_archive( | response = post_archive( | ||||
authenticated_client, | authenticated_client, | ||||
url, | url, | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |