aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-07 00:53:13 +0200
committerLorenz Diener <[email protected]>2018-05-07 00:53:13 +0200
commit8d5fe70c7e52656b2f89d0acfb1aed23bf583041 (patch)
treea210ef1ba6255d8f64fdd623de41f0e6931c4508 /tests/cassettes/test_status_mute_unmute.yaml
parentc0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff)
downloadmastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz
Fix some bugs, update tests
Diffstat (limited to 'tests/cassettes/test_status_mute_unmute.yaml')
-rw-r--r--tests/cassettes/test_status_mute_unmute.yaml54
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/cassettes/test_status_mute_unmute.yaml b/tests/cassettes/test_status_mute_unmute.yaml
index 7565973..84995e5 100644
--- a/tests/cassettes/test_status_mute_unmute.yaml
+++ b/tests/cassettes/test_status_mute_unmute.yaml
@@ -12,22 +12,22 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/statuses 13 uri: http://localhost:3000/api/v1/statuses
14 response: 14 response:
15 body: {string: '{"id":"99979652484750853","created_at":"2018-05-06T01:00:27.814Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979652484750853","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652484750853","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 15 body: {string: '{"id":"99984774703076275","created_at":"2018-05-06T22:43:06.668Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774703076275","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774703076275","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 16 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
17 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 17 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
18 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 18 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
19 headers: 19 headers:
20 Cache-Control: ['max-age=0, private, must-revalidate'] 20 Cache-Control: ['max-age=0, private, must-revalidate']
21 Content-Type: [application/json; charset=utf-8] 21 Content-Type: [application/json; charset=utf-8]
22 ETag: [W/"a0f16ab4533430d165da08d46558095d"] 22 ETag: [W/"873065d26b34d6a320f114e4a1f291dd"]
23 Transfer-Encoding: [chunked] 23 Transfer-Encoding: [chunked]
24 Vary: ['Accept-Encoding, Origin'] 24 Vary: ['Accept-Encoding, Origin']
25 X-Content-Type-Options: [nosniff] 25 X-Content-Type-Options: [nosniff]
26 X-Frame-Options: [SAMEORIGIN] 26 X-Frame-Options: [SAMEORIGIN]
27 X-Request-Id: [234ba62d-7917-4d7d-bc96-c545e460da38] 27 X-Request-Id: [0bc270ef-a15f-42b8-a967-26eee677d5df]
28 X-Runtime: ['0.162504'] 28 X-Runtime: ['0.329423']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['1402'] 30 content-length: ['1400']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
32- request: 32- request:
33 body: null 33 body: null
@@ -39,24 +39,24 @@ interactions:
39 Content-Length: ['0'] 39 Content-Length: ['0']
40 User-Agent: [python-requests/2.9.1] 40 User-Agent: [python-requests/2.9.1]
41 method: POST 41 method: POST
42 uri: http://localhost:3000/api/v1/statuses/99979652484750853/mute 42 uri: http://localhost:3000/api/v1/statuses/99984774703076275/mute
43 response: 43 response:
44 body: {string: '{"id":"99979652484750853","created_at":"2018-05-06T01:00:27.814Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979652484750853","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652484750853","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":true,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 44 body: {string: '{"id":"99984774703076275","created_at":"2018-05-06T22:43:06.668Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774703076275","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774703076275","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":true,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
45 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 45 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
46 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 46 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
47 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 47 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
48 headers: 48 headers:
49 Cache-Control: ['max-age=0, private, must-revalidate'] 49 Cache-Control: ['max-age=0, private, must-revalidate']
50 Content-Type: [application/json; charset=utf-8] 50 Content-Type: [application/json; charset=utf-8]
51 ETag: [W/"64966b179cef0bd5c2a99f1c98203787"] 51 ETag: [W/"ba49dfc55a1080c217e53f1b01254b82"]
52 Transfer-Encoding: [chunked] 52 Transfer-Encoding: [chunked]
53 Vary: ['Accept-Encoding, Origin'] 53 Vary: ['Accept-Encoding, Origin']
54 X-Content-Type-Options: [nosniff] 54 X-Content-Type-Options: [nosniff]
55 X-Frame-Options: [SAMEORIGIN] 55 X-Frame-Options: [SAMEORIGIN]
56 X-Request-Id: [f9e83ef3-19e5-452f-ac36-8e9dbe3e4c47] 56 X-Request-Id: [b9bf1df8-57f5-4104-b55a-3cd7c8da7382]
57 X-Runtime: ['0.146105'] 57 X-Runtime: ['0.252331']
58 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
59 content-length: ['1401'] 59 content-length: ['1399']
60 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
61- request: 61- request:
62 body: null 62 body: null
@@ -68,24 +68,24 @@ interactions:
68 Content-Length: ['0'] 68 Content-Length: ['0']
69 User-Agent: [python-requests/2.9.1] 69 User-Agent: [python-requests/2.9.1]
70 method: POST 70 method: POST
71 uri: http://localhost:3000/api/v1/statuses/99979652484750853/unmute 71 uri: http://localhost:3000/api/v1/statuses/99984774703076275/unmute
72 response: 72 response:
73 body: {string: '{"id":"99979652484750853","created_at":"2018-05-06T01:00:27.814Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979652484750853","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979652484750853","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 73 body: {string: '{"id":"99984774703076275","created_at":"2018-05-06T22:43:06.668Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774703076275","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774703076275","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
75 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 75 Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI
76 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":129},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 76 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
77 headers: 77 headers:
78 Cache-Control: ['max-age=0, private, must-revalidate'] 78 Cache-Control: ['max-age=0, private, must-revalidate']
79 Content-Type: [application/json; charset=utf-8] 79 Content-Type: [application/json; charset=utf-8]
80 ETag: [W/"98a980f7580131fae7c0868b431f98b5"] 80 ETag: [W/"b52d32cdf0a1567f67f234887d90c35a"]
81 Transfer-Encoding: [chunked] 81 Transfer-Encoding: [chunked]
82 Vary: ['Accept-Encoding, Origin'] 82 Vary: ['Accept-Encoding, Origin']
83 X-Content-Type-Options: [nosniff] 83 X-Content-Type-Options: [nosniff]
84 X-Frame-Options: [SAMEORIGIN] 84 X-Frame-Options: [SAMEORIGIN]
85 X-Request-Id: [0f7b0209-e6eb-4838-91ca-ff1de763ac60] 85 X-Request-Id: [fc126f68-870e-42c4-b2d3-602b7fe0718a]
86 X-Runtime: ['0.082013'] 86 X-Runtime: ['0.083912']
87 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
88 content-length: ['1402'] 88 content-length: ['1400']
89 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
90- request: 90- request:
91 body: null 91 body: null
@@ -97,19 +97,19 @@ interactions:
97 Content-Length: ['0'] 97 Content-Length: ['0']
98 User-Agent: [python-requests/2.9.1] 98 User-Agent: [python-requests/2.9.1]
99 method: DELETE 99 method: DELETE
100 uri: http://localhost:3000/api/v1/statuses/99979652484750853 100 uri: http://localhost:3000/api/v1/statuses/99984774703076275
101 response: 101 response:
102 body: {string: '{}'} 102 body: {string: '{}'}
103 headers: 103 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 104 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 105 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"7a6e9a4cfce27806a879e1ef66fc55f2"] 106 ETag: [W/"a90e0530861cc44cce570fe7becbb575"]
107 Transfer-Encoding: [chunked] 107 Transfer-Encoding: [chunked]
108 Vary: ['Accept-Encoding, Origin'] 108 Vary: ['Accept-Encoding, Origin']
109 X-Content-Type-Options: [nosniff] 109 X-Content-Type-Options: [nosniff]
110 X-Frame-Options: [SAMEORIGIN] 110 X-Frame-Options: [SAMEORIGIN]
111 X-Request-Id: [eb36dfed-1706-410f-9c9b-646dc8804a3d] 111 X-Request-Id: [f6c827eb-a5c5-4c5f-ac31-5acbf179ab13]
112 X-Runtime: ['0.036772'] 112 X-Runtime: ['0.060850']
113 X-XSS-Protection: [1; mode=block] 113 X-XSS-Protection: [1; mode=block]
114 content-length: ['2'] 114 content-length: ['2']
115 status: {code: 200, message: OK} 115 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)