process multipart form
This commit is contained in:
parent
b3f6e5ab2f
commit
49b056563a
2 changed files with 38 additions and 15 deletions
|
|
@ -4457,6 +4457,6 @@ def test_creating_presigned_post():
|
|||
ExpiresIn=1000,
|
||||
)
|
||||
resp = requests.post(data['url'], data=data['fields'], files={'file': fdata}, allow_redirects=False)
|
||||
assert resp.headers['Location'] == url
|
||||
assert resp.headers['Location'] == success_url
|
||||
assert resp.status_code == 303
|
||||
assert s3.get_object(Bucket=bucket, Key='{file_uuid}.txt'.format(file_uid=file_uid))['Body'].read() == fdata
|
||||
assert s3.get_object(Bucket=bucket, Key='{file_uid}.txt'.format(file_uid=file_uid))['Body'].read() == fdata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue