Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/tests/api/test_collection_post_multipart.py
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Lines | |||||
def test_post_deposit_multipart_if_upload_size_limit_exceeded( | def test_post_deposit_multipart_if_upload_size_limit_exceeded( | ||||
authenticated_client, deposit_collection, atom_dataset, sample_archive | authenticated_client, deposit_collection, atom_dataset, sample_archive | ||||
): | ): | ||||
# given | # given | ||||
url = reverse(COL_IRI, args=[deposit_collection.name]) | url = reverse(COL_IRI, args=[deposit_collection.name]) | ||||
archive = { | archive = { | ||||
**sample_archive, | **sample_archive, | ||||
"data": sample_archive["data"] * 8, | "data": sample_archive["data"] * 100, | ||||
} | } | ||||
data_atom_entry = atom_dataset["entry-data-deposit-binary"] | data_atom_entry = atom_dataset["entry-data-deposit-binary"] | ||||
external_id = "external-id" | external_id = "external-id" | ||||
# when | # when | ||||
response = post_multipart( | response = post_multipart( | ||||
authenticated_client, | authenticated_client, | ||||
Show All 13 Lines |