From 4f90728a4a8c98f3ee7e9aab5a05f93c152a375d Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Feb 2020 20:31:33 +0100 Subject: Fix tests for 3.1.1 --- tests/cassettes/test_media_update.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'tests/cassettes/test_media_update.yaml') diff --git a/tests/cassettes/test_media_update.yaml b/tests/cassettes/test_media_update.yaml index 29c5b51..cf0b32e 100644 --- a/tests/cassettes/test_media_update.yaml +++ b/tests/cassettes/test_media_update.yaml @@ -1,13 +1,13 @@ interactions: - request: body: !!binary | - LS1kZmMyYzUyZjVkYzE0NDk0YmQxMmQyYWQ1ZWI5ZWJjNw0KQ29udGVudC1EaXNwb3NpdGlvbjog + LS0xMjkyZjA0MzE0ZWY0ZTI5YThmYWRhZGY3MTZmZTBhOA0KQ29udGVudC1EaXNwb3NpdGlvbjog Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u - eSB3YWxrDQotLWRmYzJjNTJmNWRjMTQ0OTRiZDEyZDJhZDVlYjllYmM3DQpDb250ZW50LURpc3Bv - c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS1kZmMyYzUyZjVk - YzE0NDk0YmQxMmQyYWQ1ZWI5ZWJjNw0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu - YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTU3MDkxNDA1My40MDc4MDc4 - XzY1OEtENEJBTFQuanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA + eSB3YWxrDQotLTEyOTJmMDQzMTRlZjRlMjlhOGZhZGFkZjcxNmZlMGE4DQpDb250ZW50LURpc3Bv + c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS0xMjkyZjA0MzE0 + ZWY0ZTI5YThmYWRhZGY3MTZmZTBhOA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu + YW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTU4MjM5OTcyOC43ODIzMDU3 + X0xFM0FWOU85NTMuanBlIg0KQ29udGVudC1UeXBlOiBpbWFnZS9qcGVnDQoNCv/Y/+AAEEpGSUYA AQEBAEgASAAA/+ICHElDQ19QUk9GSUxFAAEBAAACDGxjbXMCEAAAbW50clJHQiBYWVogB9wAAQAZ AAMAKQA5YWNzcEFQUEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1sY21zAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAABe @@ -943,19 +943,19 @@ interactions: qYg3CP1hg5XagwuSZZej1N96VKgeHKRZSii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcI xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp - UqD/2Q0KLS1kZmMyYzUyZjVkYzE0NDk0YmQxMmQyYWQ1ZWI5ZWJjNy0tDQo= + UqD/2Q0KLS0xMjkyZjA0MzE0ZWY0ZTI5YThmYWRhZGY3MTZmZTBhOC0tDQo= headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] Connection: [keep-alive] Content-Length: ['53738'] - Content-Type: [multipart/form-data; boundary=dfc2c52f5dc14494bd12d2ad5eb9ebc7] + Content-Type: [multipart/form-data; boundary=1292f04314ef4e29a8fadadf716fe0a8] User-Agent: [python-requests/2.18.4] method: POST uri: http://localhost:3000/api/v1/media response: - body: {string: '{"id":"39","type":"image","url":"http://localhost/system/media_attachments/files/000/000/039/original/f3f089bb8ece49a1.jpeg?1570914053","preview_url":"http://localhost/system/media_attachments/files/000/000/039/small/f3f089bb8ece49a1.jpeg?1570914053","remote_url":null,"text_url":"http://localhost/media/jwNZ2q0V3Y62RX62YdM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"3","type":"image","url":"http://localhost/system/media_attachments/files/000/000/003/original/aa98af395e0fcdf2.jpeg?1582399728","preview_url":"http://localhost/system/media_attachments/files/000/000/003/small/aa98af395e0fcdf2.jpeg?1582399728","remote_url":null,"text_url":"http://localhost/media/aRhpj5TqOQi3Mw8m4Kg","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} headers: Cache-Control: ['no-cache, no-store'] @@ -967,10 +967,10 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [8aaf813d-d716-4a4f-a809-d613c1840a46] - X-Runtime: ['0.331612'] + X-Request-Id: [1a6b2fe2-de43-49b1-aaa4-016e21d92035] + X-Runtime: ['0.356358'] X-XSS-Protection: [1; mode=block] - content-length: ['591'] + content-length: ['590'] status: {code: 200, message: OK} - request: body: focus=0.69%2C0.69&description=John+Lennon+doing+a+cool+walk @@ -983,9 +983,9 @@ interactions: Content-Type: [application/x-www-form-urlencoded] User-Agent: [python-requests/2.18.4] method: PUT - uri: http://localhost:3000/api/v1/media/39 + uri: http://localhost:3000/api/v1/media/3 response: - body: {string: '{"id":"39","type":"image","url":"http://localhost/system/media_attachments/files/000/000/039/original/f3f089bb8ece49a1.jpeg?1570914053","preview_url":"http://localhost/system/media_attachments/files/000/000/039/small/f3f089bb8ece49a1.jpeg?1570914053","remote_url":null,"text_url":"http://localhost/media/jwNZ2q0V3Y62RX62YdM","meta":{"focus":{"x":0.69,"y":0.69},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John + body: {string: '{"id":"3","type":"image","url":"http://localhost/system/media_attachments/files/000/000/003/original/aa98af395e0fcdf2.jpeg?1582399728","preview_url":"http://localhost/system/media_attachments/files/000/000/003/small/aa98af395e0fcdf2.jpeg?1582399728","remote_url":null,"text_url":"http://localhost/media/aRhpj5TqOQi3Mw8m4Kg","meta":{"focus":{"x":0.69,"y":0.69},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John Lennon doing a cool walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} headers: Cache-Control: ['no-cache, no-store'] @@ -997,9 +997,9 @@ interactions: X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [efc88a10-b04f-449c-8c1d-7fc1b8ff7b9e] - X-Runtime: ['0.028675'] + X-Request-Id: [509a16dd-89ca-4ad0-8a01-cfdb3030d37c] + X-Runtime: ['0.041738'] X-XSS-Protection: [1; mode=block] - content-length: ['591'] + content-length: ['590'] status: {code: 200, message: OK} version: 1 -- cgit v1.2.3