From 3277ca777821e76955fb26d80788939a311db9db Mon Sep 17 00:00:00 2001 From: halcy Date: Mon, 7 Nov 2022 23:11:30 +0200 Subject: Initial test fixing pass. Four tests still fail. --- tests/cassettes_pre_4_0_0/test_filter_update.yaml | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 tests/cassettes_pre_4_0_0/test_filter_update.yaml (limited to 'tests/cassettes_pre_4_0_0/test_filter_update.yaml') diff --git a/tests/cassettes_pre_4_0_0/test_filter_update.yaml b/tests/cassettes_pre_4_0_0/test_filter_update.yaml new file mode 100644 index 0000000..86e9842 --- /dev/null +++ b/tests/cassettes_pre_4_0_0/test_filter_update.yaml @@ -0,0 +1,87 @@ +interactions: +- request: + body: whole_word=1&irreversible=0&phrase=anime&context%5B%5D=notifications + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + Content-Length: ['68'] + Content-Type: [application/x-www-form-urlencoded] + User-Agent: [python-requests/2.18.4] + method: POST + uri: http://localhost:3000/api/v1/filters + response: + body: {string: '{"id":"3","phrase":"anime","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + headers: + Cache-Control: ['no-cache, no-store'] + Content-Type: [application/json; charset=utf-8] + Referrer-Policy: [strict-origin-when-cross-origin] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] + X-Frame-Options: [SAMEORIGIN] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [220c49fb-ac0c-488e-a28c-2c6e929b28b4] + X-Runtime: ['0.036281'] + X-XSS-Protection: [1; mode=block] + content-length: ['112'] + status: {code: 200, message: OK} +- request: + body: phrase=japanimation + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + Content-Length: ['19'] + Content-Type: [application/x-www-form-urlencoded] + User-Agent: [python-requests/2.18.4] + method: PUT + uri: http://localhost:3000/api/v1/filters/3 + response: + body: {string: '{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + headers: + Cache-Control: ['no-cache, no-store'] + Content-Type: [application/json; charset=utf-8] + Referrer-Policy: [strict-origin-when-cross-origin] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] + X-Frame-Options: [SAMEORIGIN] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [db1bb32d-5f6d-41a2-9b61-5197030c32b0] + X-Runtime: ['0.033542'] + X-XSS-Protection: [1; mode=block] + content-length: ['119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] + Connection: [keep-alive] + User-Agent: [python-requests/2.18.4] + method: GET + uri: http://localhost:3000/api/v1/filters/3 + response: + body: {string: '{"id":"3","phrase":"japanimation","context":["notifications"],"whole_word":true,"expires_at":null,"irreversible":false}'} + headers: + Cache-Control: ['no-cache, no-store'] + Content-Type: [application/json; charset=utf-8] + Referrer-Policy: [strict-origin-when-cross-origin] + Transfer-Encoding: [chunked] + Vary: ['Accept-Encoding, Origin'] + X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] + X-Frame-Options: [SAMEORIGIN] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [3123dbc3-1ecb-47c7-8934-13b14fcad219] + X-Runtime: ['0.042994'] + X-XSS-Protection: [1; mode=block] + content-length: ['119'] + status: {code: 200, message: OK} +version: 1 -- cgit v1.2.3