aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-07-30 20:25:25 +0200
committerLorenz Diener <[email protected]>2018-07-30 20:25:25 +0200
commit087fb249dad981be4dfbfea13a842bfcc1cd8fd7 (patch)
tree5226e6a544353fedac0c8ae133188a7d9d510f8a
parent8feed51075af332c45e6aacd106550eff2233675 (diff)
downloadmastodon.py-087fb249dad981be4dfbfea13a842bfcc1cd8fd7.tar.gz
Fix tests
-rw-r--r--docs/index.rst5
-rw-r--r--mastodon/Mastodon.py7
-rw-r--r--tests/cassettes/test_account_follow_unfollow.yaml21
-rw-r--r--tests/cassettes/test_account_search.yaml57
-rw-r--r--tests/cassettes/test_follow_request_authorize.yaml23
-rw-r--r--tests/cassettes/test_follow_request_reject.yaml17
-rw-r--r--tests/cassettes/test_list_add_remove_account.yaml138
-rw-r--r--tests/cassettes/test_list_by_account.yaml67
-rw-r--r--tests/cassettes/test_list_timeline.yaml97
9 files changed, 219 insertions, 213 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 1f8b279..e1dc7ac 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -378,8 +378,7 @@ Filter dicts
378 'context': # List of places where the filters are applied ('home', 'notifications', 'public', 'thread') 378 'context': # List of places where the filters are applied ('home', 'notifications', 'public', 'thread')
379 'expires_at': # Expiry date for the filter 379 'expires_at': # Expiry date for the filter
380 'irreversible': # Boolean denoting if this filter is executed server-side 380 'irreversible': # Boolean denoting if this filter is executed server-side
381 # or if it should be ran client-side (Note that Mastodon.py does 381 # or if it should be ran client-side.
382 # not run client-side filters for you).
383 'whole_word': # Boolean denoting whether this filter can match partial words 382 'whole_word': # Boolean denoting whether this filter can match partial words
384 } 383 }
385 384
@@ -946,4 +945,4 @@ about who helped with which particular feature or fix in the changelog.
946 945
947.. _Mastodon: https://github.com/tootsuite/mastodon 946.. _Mastodon: https://github.com/tootsuite/mastodon
948.. _Mastodon flagship instance: http://mastodon.social/ 947.. _Mastodon flagship instance: http://mastodon.social/
949.. _Mastodon api docs: https://github.com/tootsuite/documentation/ \ No newline at end of file 948.. _Mastodon api docs: https://github.com/tootsuite/documentation/
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index bb7ef31..f524c61 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1497,15 +1497,14 @@ class Mastodon:
1497 # Writing data: Keyword filters 1497 # Writing data: Keyword filters
1498 ### 1498 ###
1499 @api_version("2.4.3", "2.4.3", __DICT_VERSION_FILTER) 1499 @api_version("2.4.3", "2.4.3", __DICT_VERSION_FILTER)
1500 def filter_create(phrase, context, irreversible = True, whole_word = True, expires_in = None): 1500 def filter_create(phrase, context, irreversible = False, whole_word = True, expires_in = None):
1501 """ 1501 """
1502 Creates a new keyword filter. `phrase` is the phrase that should be 1502 Creates a new keyword filter. `phrase` is the phrase that should be
1503 filtered out, `context` specifies from where to filter the keywords. 1503 filtered out, `context` specifies from where to filter the keywords.
1504 Valid contexts are 'home', 'notifications', 'public' and 'thread'. 1504 Valid contexts are 'home', 'notifications', 'public' and 'thread'.
1505 1505
1506 Set `irreversible` to False if you want the filter to merely be applied 1506 Set `irreversible` to True if you want the filter to just delete statuses
1507 at client side. Note that Mastodon.py doesn't do any client-side 1507 server side. This works only for the 'home' and 'notifications' contexts.
1508 filtering for you.
1509 1508
1510 Set `whole_word` to False if you want to allow filter matches to 1509 Set `whole_word` to False if you want to allow filter matches to
1511 start or end within a word, not only at word boundaries. 1510 start or end within a word, not only at word boundaries.
diff --git a/tests/cassettes/test_account_follow_unfollow.yaml b/tests/cassettes/test_account_follow_unfollow.yaml
index ff72257..db8abd3 100644
--- a/tests/cassettes/test_account_follow_unfollow.yaml
+++ b/tests/cassettes/test_account_follow_unfollow.yaml
@@ -1,21 +1,22 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: null 3 body: reblogs=True&id=1
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['0'] 9 Content-Length: ['17']
10 Content-Type: [application/x-www-form-urlencoded]
10 User-Agent: [python-requests/2.18.4] 11 User-Agent: [python-requests/2.18.4]
11 method: POST 12 method: POST
12 uri: http://localhost:3000/api/v1/accounts/1/follow 13 uri: http://localhost:3000/api/v1/accounts/1/follow
13 response: 14 response:
14 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 15 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
15 headers: 16 headers:
16 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
17 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
18 ETag: [W/"2aac633ba6c8db22698d7975d76a2350"] 19 ETag: [W/"da231c42e4f93811b1967ba204ea1826"]
19 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
20 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -23,10 +24,10 @@ interactions:
23 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
24 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
25 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
26 X-Request-Id: [133f29cb-6a3a-486f-9b2a-745b0439a8ad] 27 X-Request-Id: [58de6ff4-5b4d-40ff-acfc-cbacec164fba]
27 X-Runtime: ['0.068733'] 28 X-Runtime: ['0.133648']
28 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
29 content-length: ['174'] 30 content-length: ['173']
30 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
31- request: 32- request:
32 body: null 33 body: null
@@ -44,7 +45,7 @@ interactions:
44 headers: 45 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 46 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 47 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"567fcb76cedd3fab2d295958338f60e1"] 48 ETag: [W/"aa5045a7c507295fb5399be2a201fd0a"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 49 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
@@ -52,8 +53,8 @@ interactions:
52 X-Download-Options: [noopen] 53 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 54 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 55 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [18d3baab-c960-4eb9-842f-8e9a8be1bcd5] 56 X-Request-Id: [6500e743-3e55-4931-a7de-3433017b2892]
56 X-Runtime: ['0.075583'] 57 X-Runtime: ['0.117442']
57 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
58 content-length: ['175'] 59 content-length: ['175']
59 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml
index 78f20e8..b8698c5 100644
--- a/tests/cassettes/test_account_search.yaml
+++ b/tests/cassettes/test_account_search.yaml
@@ -10,11 +10,11 @@ interactions:
10 method: GET 10 method: GET
11 uri: http://localhost:3000/api/v1/accounts/search?q=admin 11 uri: http://localhost:3000/api/v1/accounts/search?q=admin
12 response: 12 response:
13 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]}]'} 13 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":67,"emojis":[],"fields":[]}]'}
14 headers: 14 headers:
15 Cache-Control: ['max-age=0, private, must-revalidate'] 15 Cache-Control: ['max-age=0, private, must-revalidate']
16 Content-Type: [application/json; charset=utf-8] 16 Content-Type: [application/json; charset=utf-8]
17 ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"] 17 ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"]
18 Referrer-Policy: [strict-origin-when-cross-origin] 18 Referrer-Policy: [strict-origin-when-cross-origin]
19 Transfer-Encoding: [chunked] 19 Transfer-Encoding: [chunked]
20 Vary: ['Accept-Encoding, Origin'] 20 Vary: ['Accept-Encoding, Origin']
@@ -22,28 +22,29 @@ interactions:
22 X-Download-Options: [noopen] 22 X-Download-Options: [noopen]
23 X-Frame-Options: [SAMEORIGIN] 23 X-Frame-Options: [SAMEORIGIN]
24 X-Permitted-Cross-Domain-Policies: [none] 24 X-Permitted-Cross-Domain-Policies: [none]
25 X-Request-Id: [7a7d43e4-0b13-4e23-aa34-560855b13366] 25 X-Request-Id: [d64736d5-872b-4576-a016-507e5a6210c9]
26 X-Runtime: ['0.028422'] 26 X-Runtime: ['0.593596']
27 X-XSS-Protection: [1; mode=block] 27 X-XSS-Protection: [1; mode=block]
28 content-length: ['550'] 28 content-length: ['551']
29 status: {code: 200, message: OK} 29 status: {code: 200, message: OK}
30- request: 30- request:
31 body: null 31 body: reblogs=True&id=1
32 headers: 32 headers:
33 Accept: ['*/*'] 33 Accept: ['*/*']
34 Accept-Encoding: ['gzip, deflate'] 34 Accept-Encoding: ['gzip, deflate']
35 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 35 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
36 Connection: [keep-alive] 36 Connection: [keep-alive]
37 Content-Length: ['0'] 37 Content-Length: ['17']
38 Content-Type: [application/x-www-form-urlencoded]
38 User-Agent: [python-requests/2.18.4] 39 User-Agent: [python-requests/2.18.4]
39 method: POST 40 method: POST
40 uri: http://localhost:3000/api/v1/accounts/1/follow 41 uri: http://localhost:3000/api/v1/accounts/1/follow
41 response: 42 response:
42 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 43 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
43 headers: 44 headers:
44 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
45 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
46 ETag: [W/"2aac633ba6c8db22698d7975d76a2350"] 47 ETag: [W/"73b11b0fc7e76756964f8713cfbd32d3"]
47 Referrer-Policy: [strict-origin-when-cross-origin] 48 Referrer-Policy: [strict-origin-when-cross-origin]
48 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
49 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
@@ -51,10 +52,10 @@ interactions:
51 X-Download-Options: [noopen] 52 X-Download-Options: [noopen]
52 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
53 X-Permitted-Cross-Domain-Policies: [none] 54 X-Permitted-Cross-Domain-Policies: [none]
54 X-Request-Id: [de297198-591f-4e6e-8515-24f1b7741899] 55 X-Request-Id: [9d397398-5005-4e02-bb24-6be14263e449]
55 X-Runtime: ['0.062917'] 56 X-Runtime: ['0.281744']
56 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
57 content-length: ['174'] 58 content-length: ['173']
58 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
59- request: 60- request:
60 body: null 61 body: null
@@ -67,11 +68,11 @@ interactions:
67 method: GET 68 method: GET
68 uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin 69 uri: http://localhost:3000/api/v1/accounts/search?following=True&q=admin
69 response: 70 response:
70 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]}]'} 71 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":67,"emojis":[],"fields":[]}]'}
71 headers: 72 headers:
72 Cache-Control: ['max-age=0, private, must-revalidate'] 73 Cache-Control: ['max-age=0, private, must-revalidate']
73 Content-Type: [application/json; charset=utf-8] 74 Content-Type: [application/json; charset=utf-8]
74 ETag: [W/"6420365b0c00860d2adcedbe18d93c46"] 75 ETag: [W/"d684e220cc20b462f23ae1d44d5ef8e2"]
75 Referrer-Policy: [strict-origin-when-cross-origin] 76 Referrer-Policy: [strict-origin-when-cross-origin]
76 Transfer-Encoding: [chunked] 77 Transfer-Encoding: [chunked]
77 Vary: ['Accept-Encoding, Origin'] 78 Vary: ['Accept-Encoding, Origin']
@@ -79,10 +80,10 @@ interactions:
79 X-Download-Options: [noopen] 80 X-Download-Options: [noopen]
80 X-Frame-Options: [SAMEORIGIN] 81 X-Frame-Options: [SAMEORIGIN]
81 X-Permitted-Cross-Domain-Policies: [none] 82 X-Permitted-Cross-Domain-Policies: [none]
82 X-Request-Id: [9c9011c5-cc1b-40a4-9d1b-56f669adc944] 83 X-Request-Id: [e511d32a-a026-447c-b4c9-aa10bec732d7]
83 X-Runtime: ['0.035517'] 84 X-Runtime: ['0.057559']
84 X-XSS-Protection: [1; mode=block] 85 X-XSS-Protection: [1; mode=block]
85 content-length: ['550'] 86 content-length: ['551']
86 status: {code: 200, message: OK} 87 status: {code: 200, message: OK}
87- request: 88- request:
88 body: null 89 body: null
@@ -100,7 +101,7 @@ interactions:
100 headers: 101 headers:
101 Cache-Control: ['max-age=0, private, must-revalidate'] 102 Cache-Control: ['max-age=0, private, must-revalidate']
102 Content-Type: [application/json; charset=utf-8] 103 Content-Type: [application/json; charset=utf-8]
103 ETag: [W/"567fcb76cedd3fab2d295958338f60e1"] 104 ETag: [W/"97b254dec020382a063f788a6984808f"]
104 Referrer-Policy: [strict-origin-when-cross-origin] 105 Referrer-Policy: [strict-origin-when-cross-origin]
105 Transfer-Encoding: [chunked] 106 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin'] 107 Vary: ['Accept-Encoding, Origin']
@@ -108,8 +109,8 @@ interactions:
108 X-Download-Options: [noopen] 109 X-Download-Options: [noopen]
109 X-Frame-Options: [SAMEORIGIN] 110 X-Frame-Options: [SAMEORIGIN]
110 X-Permitted-Cross-Domain-Policies: [none] 111 X-Permitted-Cross-Domain-Policies: [none]
111 X-Request-Id: [e9a45781-41e5-4184-86b3-bf528fd342df] 112 X-Request-Id: [1e249c7b-04fe-42d7-b6c6-330d072b38db]
112 X-Runtime: ['0.045182'] 113 X-Runtime: ['0.116435']
113 X-XSS-Protection: [1; mode=block] 114 X-XSS-Protection: [1; mode=block]
114 content-length: ['175'] 115 content-length: ['175']
115 status: {code: 200, message: OK} 116 status: {code: 200, message: OK}
@@ -128,7 +129,7 @@ interactions:
128 headers: 129 headers:
129 Cache-Control: ['max-age=0, private, must-revalidate'] 130 Cache-Control: ['max-age=0, private, must-revalidate']
130 Content-Type: [application/json; charset=utf-8] 131 Content-Type: [application/json; charset=utf-8]
131 ETag: [W/"573082b711c5e9cb9dfd1bef03d669a2"] 132 ETag: [W/"98911f27999fb7ceab3f494fc3157179"]
132 Referrer-Policy: [strict-origin-when-cross-origin] 133 Referrer-Policy: [strict-origin-when-cross-origin]
133 Transfer-Encoding: [chunked] 134 Transfer-Encoding: [chunked]
134 Vary: ['Accept-Encoding, Origin'] 135 Vary: ['Accept-Encoding, Origin']
@@ -136,8 +137,8 @@ interactions:
136 X-Download-Options: [noopen] 137 X-Download-Options: [noopen]
137 X-Frame-Options: [SAMEORIGIN] 138 X-Frame-Options: [SAMEORIGIN]
138 X-Permitted-Cross-Domain-Policies: [none] 139 X-Permitted-Cross-Domain-Policies: [none]
139 X-Request-Id: [1381d7b9-67d0-423c-82c8-91e34f24b010] 140 X-Request-Id: [c75c8037-cfe2-40f5-a780-f76fe720e6d0]
140 X-Runtime: ['0.021078'] 141 X-Runtime: ['0.066532']
141 X-XSS-Protection: [1; mode=block] 142 X-XSS-Protection: [1; mode=block]
142 content-length: ['2'] 143 content-length: ['2']
143 status: {code: 200, message: OK} 144 status: {code: 200, message: OK}
@@ -152,11 +153,11 @@ interactions:
152 method: GET 153 method: GET
153 uri: http://localhost:3000/api/v1/accounts/search?q=admin 154 uri: http://localhost:3000/api/v1/accounts/search?q=admin
154 response: 155 response:
155 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]}]'} 156 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":67,"emojis":[],"fields":[]}]'}
156 headers: 157 headers:
157 Cache-Control: ['max-age=0, private, must-revalidate'] 158 Cache-Control: ['max-age=0, private, must-revalidate']
158 Content-Type: [application/json; charset=utf-8] 159 Content-Type: [application/json; charset=utf-8]
159 ETag: [W/"9ed38f78d86f3323e4d890f7fde996fe"] 160 ETag: [W/"db85ef2b54ebcf74ab2a62a3611b32f9"]
160 Referrer-Policy: [strict-origin-when-cross-origin] 161 Referrer-Policy: [strict-origin-when-cross-origin]
161 Transfer-Encoding: [chunked] 162 Transfer-Encoding: [chunked]
162 Vary: ['Accept-Encoding, Origin'] 163 Vary: ['Accept-Encoding, Origin']
@@ -164,9 +165,9 @@ interactions:
164 X-Download-Options: [noopen] 165 X-Download-Options: [noopen]
165 X-Frame-Options: [SAMEORIGIN] 166 X-Frame-Options: [SAMEORIGIN]
166 X-Permitted-Cross-Domain-Policies: [none] 167 X-Permitted-Cross-Domain-Policies: [none]
167 X-Request-Id: [1dd3604c-c7d2-4938-8569-77c84b69b8b1] 168 X-Request-Id: [d2d1d56b-fd97-4998-b364-2a8c1d9e6e33]
168 X-Runtime: ['0.017571'] 169 X-Runtime: ['0.053387']
169 X-XSS-Protection: [1; mode=block] 170 X-XSS-Protection: [1; mode=block]
170 content-length: ['550'] 171 content-length: ['551']
171 status: {code: 200, message: OK} 172 status: {code: 200, message: OK}
172version: 1 173version: 1
diff --git a/tests/cassettes/test_follow_request_authorize.yaml b/tests/cassettes/test_follow_request_authorize.yaml
index 4499b6b..af531f6 100644
--- a/tests/cassettes/test_follow_request_authorize.yaml
+++ b/tests/cassettes/test_follow_request_authorize.yaml
@@ -1,12 +1,13 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: null 3 body: reblogs=True&id=1234567890123456
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['0'] 9 Content-Length: ['32']
10 Content-Type: [application/x-www-form-urlencoded]
10 User-Agent: [python-requests/2.18.4] 11 User-Agent: [python-requests/2.18.4]
11 method: POST 12 method: POST
12 uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow 13 uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow
@@ -15,7 +16,7 @@ interactions:
15 headers: 16 headers:
16 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
17 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
18 ETag: [W/"3f1f0210e7ee7ff846ebc784ad5ad194"] 19 ETag: [W/"1b53bbbf2157ed6dfbc2ebff1bae575a"]
19 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
20 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -23,8 +24,8 @@ interactions:
23 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
24 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
25 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
26 X-Request-Id: [15751ad2-d68e-4b74-8a2d-0100a50544e9] 27 X-Request-Id: [d825adf4-d39b-4b11-ac06-52f1c2ebae1e]
27 X-Runtime: ['0.047205'] 28 X-Runtime: ['0.167887']
28 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
29 content-length: ['188'] 30 content-length: ['188']
30 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
@@ -44,7 +45,7 @@ interactions:
44 headers: 45 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 46 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 47 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"bfd3faa192e3a4b3c0dc9e2fe633c178"] 48 ETag: [W/"eaa50bd8a2a8ed6f27b526579722aa2b"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 49 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
@@ -52,8 +53,8 @@ interactions:
52 X-Download-Options: [noopen] 53 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 54 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 55 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [1dc7febe-b975-4165-8cf1-b42038e1b54a] 56 X-Request-Id: [e60c20e1-3f5a-482b-bd96-fe38751015cc]
56 X-Runtime: ['0.070846'] 57 X-Runtime: ['0.182601']
57 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
58 content-length: ['2'] 59 content-length: ['2']
59 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
@@ -73,7 +74,7 @@ interactions:
73 headers: 74 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 75 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 76 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"db9bafc9422fb3898eed6da5609c1305"] 77 ETag: [W/"f823a0cd20057f6ffc5edcb18fcdd541"]
77 Referrer-Policy: [strict-origin-when-cross-origin] 78 Referrer-Policy: [strict-origin-when-cross-origin]
78 Transfer-Encoding: [chunked] 79 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin'] 80 Vary: ['Accept-Encoding, Origin']
@@ -81,8 +82,8 @@ interactions:
81 X-Download-Options: [noopen] 82 X-Download-Options: [noopen]
82 X-Frame-Options: [SAMEORIGIN] 83 X-Frame-Options: [SAMEORIGIN]
83 X-Permitted-Cross-Domain-Policies: [none] 84 X-Permitted-Cross-Domain-Policies: [none]
84 X-Request-Id: [ffa515f3-8799-4927-97a7-e2d843cb13be] 85 X-Request-Id: [e12e2778-318b-442e-bfe0-ce3101c67a7b]
85 X-Runtime: ['0.047887'] 86 X-Runtime: ['0.139029']
86 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
87 content-length: ['190'] 88 content-length: ['190']
88 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
diff --git a/tests/cassettes/test_follow_request_reject.yaml b/tests/cassettes/test_follow_request_reject.yaml
index 916e792..d5087fa 100644
--- a/tests/cassettes/test_follow_request_reject.yaml
+++ b/tests/cassettes/test_follow_request_reject.yaml
@@ -1,12 +1,13 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: null 3 body: reblogs=True&id=1234567890123456
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['0'] 9 Content-Length: ['32']
10 Content-Type: [application/x-www-form-urlencoded]
10 User-Agent: [python-requests/2.18.4] 11 User-Agent: [python-requests/2.18.4]
11 method: POST 12 method: POST
12 uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow 13 uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow
@@ -15,7 +16,7 @@ interactions:
15 headers: 16 headers:
16 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
17 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
18 ETag: [W/"3f1f0210e7ee7ff846ebc784ad5ad194"] 19 ETag: [W/"0e7326a77136d46511878c9fb203e88b"]
19 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
20 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
21 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -23,8 +24,8 @@ interactions:
23 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
24 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
25 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
26 X-Request-Id: [fba6f898-6ea1-4de4-a063-a53643cfc286] 27 X-Request-Id: [ec1d931d-897e-4219-9fa1-6166bc762bfd]
27 X-Runtime: ['0.042411'] 28 X-Runtime: ['0.156235']
28 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
29 content-length: ['188'] 30 content-length: ['188']
30 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
@@ -44,7 +45,7 @@ interactions:
44 headers: 45 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 46 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 47 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"bfd3faa192e3a4b3c0dc9e2fe633c178"] 48 ETag: [W/"cc038aae2038665db3b200fc78f63649"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 49 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
@@ -52,8 +53,8 @@ interactions:
52 X-Download-Options: [noopen] 53 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 54 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 55 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [258bc833-565f-486b-8eee-88838ed05f77] 56 X-Request-Id: [cb36e831-38d1-464f-a80a-6996a0e54290]
56 X-Runtime: ['0.021558'] 57 X-Runtime: ['0.026729']
57 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
58 content-length: ['2'] 59 content-length: ['2']
59 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
diff --git a/tests/cassettes/test_list_add_remove_account.yaml b/tests/cassettes/test_list_add_remove_account.yaml
index 96d8eb0..c70cfd0 100644
--- a/tests/cassettes/test_list_add_remove_account.yaml
+++ b/tests/cassettes/test_list_add_remove_account.yaml
@@ -12,11 +12,11 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/lists 13 uri: http://localhost:3000/api/v1/lists
14 response: 14 response:
15 body: {string: '{"id":"8","title":"ham burglars"}'} 15 body: {string: '{"id":"11","title":"ham burglars"}'}
16 headers: 16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"fa515662bd5f01d24648b40d4019aad1"] 19 ETag: [W/"2e1510bf7e5d27be138dad5ee706a95c"]
20 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
21 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -24,10 +24,10 @@ interactions:
24 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
25 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
26 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
27 X-Request-Id: [6f26ef1b-5e51-4cbd-b165-08bd0ba19035] 27 X-Request-Id: [ba3b9608-0492-4e9e-bf94-3c0cec978c5d]
28 X-Runtime: ['0.024120'] 28 X-Runtime: ['0.052839']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['33'] 30 content-length: ['34']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
32- request: 32- request:
33 body: null 33 body: null
@@ -40,11 +40,11 @@ interactions:
40 method: GET 40 method: GET
41 uri: http://localhost:3000/api/v1/accounts/verify_credentials 41 uri: http://localhost:3000/api/v1/accounts/verify_credentials
42 response: 42 response:
43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":5,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":67,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
44 headers: 44 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"2c1db1f5c9c342772002bf0d4ff450ec"] 47 ETag: [W/"77222b64dac9878e096ec88200a8855c"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 48 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
@@ -52,28 +52,29 @@ interactions:
52 X-Download-Options: [noopen] 52 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 54 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [60e7b33d-da24-4ff7-8f2f-3264d837c2b6] 55 X-Request-Id: [6c72b0ad-2086-45ff-a7de-9fdf35686b8a]
56 X-Runtime: ['0.018413'] 56 X-Runtime: ['0.026289']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['634'] 58 content-length: ['635']
59 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
60- request: 60- request:
61 body: null 61 body: reblogs=True&id=1
62 headers: 62 headers:
63 Accept: ['*/*'] 63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate'] 64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive] 66 Connection: [keep-alive]
67 Content-Length: ['0'] 67 Content-Length: ['17']
68 Content-Type: [application/x-www-form-urlencoded]
68 User-Agent: [python-requests/2.18.4] 69 User-Agent: [python-requests/2.18.4]
69 method: POST 70 method: POST
70 uri: http://localhost:3000/api/v1/accounts/1/follow 71 uri: http://localhost:3000/api/v1/accounts/1/follow
71 response: 72 response:
72 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 73 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
73 headers: 74 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 75 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 76 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"6de77dd5834bb5fc499eed9cda4081de"] 77 ETag: [W/"8b9b4c18fc17527693bdad489048280a"]
77 Referrer-Policy: [strict-origin-when-cross-origin] 78 Referrer-Policy: [strict-origin-when-cross-origin]
78 Transfer-Encoding: [chunked] 79 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin'] 80 Vary: ['Accept-Encoding, Origin']
@@ -81,10 +82,10 @@ interactions:
81 X-Download-Options: [noopen] 82 X-Download-Options: [noopen]
82 X-Frame-Options: [SAMEORIGIN] 83 X-Frame-Options: [SAMEORIGIN]
83 X-Permitted-Cross-Domain-Policies: [none] 84 X-Permitted-Cross-Domain-Policies: [none]
84 X-Request-Id: [bd78a915-f029-4986-b952-dabd4dda120c] 85 X-Request-Id: [47c16f53-232d-46ae-aab6-5bc99c1b197b]
85 X-Runtime: ['0.063270'] 86 X-Runtime: ['0.075269']
86 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
87 content-length: ['174'] 88 content-length: ['173']
88 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
89- request: 90- request:
90 body: account_ids%5B%5D=1 91 body: account_ids%5B%5D=1
@@ -97,13 +98,13 @@ interactions:
97 Content-Type: [application/x-www-form-urlencoded] 98 Content-Type: [application/x-www-form-urlencoded]
98 User-Agent: [python-requests/2.18.4] 99 User-Agent: [python-requests/2.18.4]
99 method: POST 100 method: POST
100 uri: http://localhost:3000/api/v1/lists/8/accounts 101 uri: http://localhost:3000/api/v1/lists/11/accounts
101 response: 102 response:
102 body: {string: '{}'} 103 body: {string: '{}'}
103 headers: 104 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 105 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 106 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"bf92612b432ba5b51a56b55e4c0b9817"] 107 ETag: [W/"cc038aae2038665db3b200fc78f63649"]
107 Referrer-Policy: [strict-origin-when-cross-origin] 108 Referrer-Policy: [strict-origin-when-cross-origin]
108 Transfer-Encoding: [chunked] 109 Transfer-Encoding: [chunked]
109 Vary: ['Accept-Encoding, Origin'] 110 Vary: ['Accept-Encoding, Origin']
@@ -111,8 +112,8 @@ interactions:
111 X-Download-Options: [noopen] 112 X-Download-Options: [noopen]
112 X-Frame-Options: [SAMEORIGIN] 113 X-Frame-Options: [SAMEORIGIN]
113 X-Permitted-Cross-Domain-Policies: [none] 114 X-Permitted-Cross-Domain-Policies: [none]
114 X-Request-Id: [f89cdcb6-0bd2-434f-83b1-5a285359bc30] 115 X-Request-Id: [06975fb9-7db6-4abc-9f2a-ef6527833977]
115 X-Runtime: ['0.047258'] 116 X-Runtime: ['0.132509']
116 X-XSS-Protection: [1; mode=block] 117 X-XSS-Protection: [1; mode=block]
117 content-length: ['2'] 118 content-length: ['2']
118 status: {code: 200, message: OK} 119 status: {code: 200, message: OK}
@@ -125,14 +126,14 @@ interactions:
125 Connection: [keep-alive] 126 Connection: [keep-alive]
126 User-Agent: [python-requests/2.18.4] 127 User-Agent: [python-requests/2.18.4]
127 method: GET 128 method: GET
128 uri: http://localhost:3000/api/v1/lists/8/accounts 129 uri: http://localhost:3000/api/v1/lists/11/accounts
129 response: 130 response:
130 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]}]'} 131 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":67,"emojis":[],"fields":[]}]'}
131 headers: 132 headers:
132 Cache-Control: ['max-age=0, private, must-revalidate'] 133 Cache-Control: ['max-age=0, private, must-revalidate']
133 Content-Type: [application/json; charset=utf-8] 134 Content-Type: [application/json; charset=utf-8]
134 ETag: [W/"a474745c1f57a6da8e80efa488b51726"] 135 ETag: [W/"48e17006c2bcb847af7e9265b33f6bfc"]
135 Link: ['<http://localhost:3000/api/v1/lists/8/accounts?since_id=1>; rel="prev"'] 136 Link: ['<http://localhost:3000/api/v1/lists/11/accounts?since_id=1>; rel="prev"']
136 Referrer-Policy: [strict-origin-when-cross-origin] 137 Referrer-Policy: [strict-origin-when-cross-origin]
137 Transfer-Encoding: [chunked] 138 Transfer-Encoding: [chunked]
138 Vary: ['Accept-Encoding, Origin'] 139 Vary: ['Accept-Encoding, Origin']
@@ -140,10 +141,10 @@ interactions:
140 X-Download-Options: [noopen] 141 X-Download-Options: [noopen]
141 X-Frame-Options: [SAMEORIGIN] 142 X-Frame-Options: [SAMEORIGIN]
142 X-Permitted-Cross-Domain-Policies: [none] 143 X-Permitted-Cross-Domain-Policies: [none]
143 X-Request-Id: [a5f30350-5070-4d6b-bf1f-b8a320da9f2a] 144 X-Request-Id: [f76e15ce-e515-45c9-96c3-92f7bd90fa99]
144 X-Runtime: ['0.018499'] 145 X-Runtime: ['0.053463']
145 X-XSS-Protection: [1; mode=block] 146 X-XSS-Protection: [1; mode=block]
146 content-length: ['550'] 147 content-length: ['551']
147 status: {code: 200, message: OK} 148 status: {code: 200, message: OK}
148- request: 149- request:
149 body: null 150 body: null
@@ -161,7 +162,7 @@ interactions:
161 headers: 162 headers:
162 Cache-Control: ['max-age=0, private, must-revalidate'] 163 Cache-Control: ['max-age=0, private, must-revalidate']
163 Content-Type: [application/json; charset=utf-8] 164 Content-Type: [application/json; charset=utf-8]
164 ETag: [W/"8afbf44289c39f499be3ca55837eced5"] 165 ETag: [W/"c1bd0e2902322c7b40156adc012ff28e"]
165 Referrer-Policy: [strict-origin-when-cross-origin] 166 Referrer-Policy: [strict-origin-when-cross-origin]
166 Transfer-Encoding: [chunked] 167 Transfer-Encoding: [chunked]
167 Vary: ['Accept-Encoding, Origin'] 168 Vary: ['Accept-Encoding, Origin']
@@ -169,8 +170,8 @@ interactions:
169 X-Download-Options: [noopen] 170 X-Download-Options: [noopen]
170 X-Frame-Options: [SAMEORIGIN] 171 X-Frame-Options: [SAMEORIGIN]
171 X-Permitted-Cross-Domain-Policies: [none] 172 X-Permitted-Cross-Domain-Policies: [none]
172 X-Request-Id: [0f7ff949-22cd-4d68-92cc-90c7ee5c8dd8] 173 X-Request-Id: [07363229-165e-43e5-8f91-32d7fba50802]
173 X-Runtime: ['0.049951'] 174 X-Runtime: ['0.082557']
174 X-XSS-Protection: [1; mode=block] 175 X-XSS-Protection: [1; mode=block]
175 content-length: ['175'] 176 content-length: ['175']
176 status: {code: 200, message: OK} 177 status: {code: 200, message: OK}
@@ -183,13 +184,13 @@ interactions:
183 Connection: [keep-alive] 184 Connection: [keep-alive]
184 User-Agent: [python-requests/2.18.4] 185 User-Agent: [python-requests/2.18.4]
185 method: GET 186 method: GET
186 uri: http://localhost:3000/api/v1/lists/8/accounts 187 uri: http://localhost:3000/api/v1/lists/11/accounts
187 response: 188 response:
188 body: {string: '[]'} 189 body: {string: '[]'}
189 headers: 190 headers:
190 Cache-Control: ['max-age=0, private, must-revalidate'] 191 Cache-Control: ['max-age=0, private, must-revalidate']
191 Content-Type: [application/json; charset=utf-8] 192 Content-Type: [application/json; charset=utf-8]
192 ETag: [W/"d77e610161dd1bed88178cffc05bb02a"] 193 ETag: [W/"f82743b7a0062bbc98545212015cc152"]
193 Referrer-Policy: [strict-origin-when-cross-origin] 194 Referrer-Policy: [strict-origin-when-cross-origin]
194 Transfer-Encoding: [chunked] 195 Transfer-Encoding: [chunked]
195 Vary: ['Accept-Encoding, Origin'] 196 Vary: ['Accept-Encoding, Origin']
@@ -197,28 +198,29 @@ interactions:
197 X-Download-Options: [noopen] 198 X-Download-Options: [noopen]
198 X-Frame-Options: [SAMEORIGIN] 199 X-Frame-Options: [SAMEORIGIN]
199 X-Permitted-Cross-Domain-Policies: [none] 200 X-Permitted-Cross-Domain-Policies: [none]
200 X-Request-Id: [627eb941-8858-4548-9da8-a138a77ad8dc] 201 X-Request-Id: [db5b3eaa-19eb-42c2-8944-955f2ea1009a]
201 X-Runtime: ['0.023576'] 202 X-Runtime: ['0.052515']
202 X-XSS-Protection: [1; mode=block] 203 X-XSS-Protection: [1; mode=block]
203 content-length: ['2'] 204 content-length: ['2']
204 status: {code: 200, message: OK} 205 status: {code: 200, message: OK}
205- request: 206- request:
206 body: null 207 body: reblogs=True&id=1
207 headers: 208 headers:
208 Accept: ['*/*'] 209 Accept: ['*/*']
209 Accept-Encoding: ['gzip, deflate'] 210 Accept-Encoding: ['gzip, deflate']
210 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 211 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
211 Connection: [keep-alive] 212 Connection: [keep-alive]
212 Content-Length: ['0'] 213 Content-Length: ['17']
214 Content-Type: [application/x-www-form-urlencoded]
213 User-Agent: [python-requests/2.18.4] 215 User-Agent: [python-requests/2.18.4]
214 method: POST 216 method: POST
215 uri: http://localhost:3000/api/v1/accounts/1/follow 217 uri: http://localhost:3000/api/v1/accounts/1/follow
216 response: 218 response:
217 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 219 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
218 headers: 220 headers:
219 Cache-Control: ['max-age=0, private, must-revalidate'] 221 Cache-Control: ['max-age=0, private, must-revalidate']
220 Content-Type: [application/json; charset=utf-8] 222 Content-Type: [application/json; charset=utf-8]
221 ETag: [W/"6de77dd5834bb5fc499eed9cda4081de"] 223 ETag: [W/"8b9b4c18fc17527693bdad489048280a"]
222 Referrer-Policy: [strict-origin-when-cross-origin] 224 Referrer-Policy: [strict-origin-when-cross-origin]
223 Transfer-Encoding: [chunked] 225 Transfer-Encoding: [chunked]
224 Vary: ['Accept-Encoding, Origin'] 226 Vary: ['Accept-Encoding, Origin']
@@ -226,10 +228,10 @@ interactions:
226 X-Download-Options: [noopen] 228 X-Download-Options: [noopen]
227 X-Frame-Options: [SAMEORIGIN] 229 X-Frame-Options: [SAMEORIGIN]
228 X-Permitted-Cross-Domain-Policies: [none] 230 X-Permitted-Cross-Domain-Policies: [none]
229 X-Request-Id: [0d1ce293-50c1-4294-b91e-a76cf5454494] 231 X-Request-Id: [ec06d458-e3c1-42b2-ada8-c8f9bb3dc5b9]
230 X-Runtime: ['0.071417'] 232 X-Runtime: ['0.134772']
231 X-XSS-Protection: [1; mode=block] 233 X-XSS-Protection: [1; mode=block]
232 content-length: ['174'] 234 content-length: ['173']
233 status: {code: 200, message: OK} 235 status: {code: 200, message: OK}
234- request: 236- request:
235 body: account_ids%5B%5D=1 237 body: account_ids%5B%5D=1
@@ -242,13 +244,13 @@ interactions:
242 Content-Type: [application/x-www-form-urlencoded] 244 Content-Type: [application/x-www-form-urlencoded]
243 User-Agent: [python-requests/2.18.4] 245 User-Agent: [python-requests/2.18.4]
244 method: POST 246 method: POST
245 uri: http://localhost:3000/api/v1/lists/8/accounts 247 uri: http://localhost:3000/api/v1/lists/11/accounts
246 response: 248 response:
247 body: {string: '{}'} 249 body: {string: '{}'}
248 headers: 250 headers:
249 Cache-Control: ['max-age=0, private, must-revalidate'] 251 Cache-Control: ['max-age=0, private, must-revalidate']
250 Content-Type: [application/json; charset=utf-8] 252 Content-Type: [application/json; charset=utf-8]
251 ETag: [W/"bf92612b432ba5b51a56b55e4c0b9817"] 253 ETag: [W/"0cdb2e7c6eb5550ff52103826ed9e2cd"]
252 Referrer-Policy: [strict-origin-when-cross-origin] 254 Referrer-Policy: [strict-origin-when-cross-origin]
253 Transfer-Encoding: [chunked] 255 Transfer-Encoding: [chunked]
254 Vary: ['Accept-Encoding, Origin'] 256 Vary: ['Accept-Encoding, Origin']
@@ -256,8 +258,8 @@ interactions:
256 X-Download-Options: [noopen] 258 X-Download-Options: [noopen]
257 X-Frame-Options: [SAMEORIGIN] 259 X-Frame-Options: [SAMEORIGIN]
258 X-Permitted-Cross-Domain-Policies: [none] 260 X-Permitted-Cross-Domain-Policies: [none]
259 X-Request-Id: [b8a42547-99e2-402b-8745-2f7c132dcca0] 261 X-Request-Id: [1dbf14ec-bd46-4d0c-a05f-e467cedf202f]
260 X-Runtime: ['0.041756'] 262 X-Runtime: ['0.061339']
261 X-XSS-Protection: [1; mode=block] 263 X-XSS-Protection: [1; mode=block]
262 content-length: ['2'] 264 content-length: ['2']
263 status: {code: 200, message: OK} 265 status: {code: 200, message: OK}
@@ -270,14 +272,14 @@ interactions:
270 Connection: [keep-alive] 272 Connection: [keep-alive]
271 User-Agent: [python-requests/2.18.4] 273 User-Agent: [python-requests/2.18.4]
272 method: GET 274 method: GET
273 uri: http://localhost:3000/api/v1/lists/8/accounts 275 uri: http://localhost:3000/api/v1/lists/11/accounts
274 response: 276 response:
275 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":5,"emojis":[],"fields":[]}]'} 277 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":67,"emojis":[],"fields":[]}]'}
276 headers: 278 headers:
277 Cache-Control: ['max-age=0, private, must-revalidate'] 279 Cache-Control: ['max-age=0, private, must-revalidate']
278 Content-Type: [application/json; charset=utf-8] 280 Content-Type: [application/json; charset=utf-8]
279 ETag: [W/"a474745c1f57a6da8e80efa488b51726"] 281 ETag: [W/"3e75598a9b305d16f2618ab63ca1d6ad"]
280 Link: ['<http://localhost:3000/api/v1/lists/8/accounts?since_id=1>; rel="prev"'] 282 Link: ['<http://localhost:3000/api/v1/lists/11/accounts?since_id=1>; rel="prev"']
281 Referrer-Policy: [strict-origin-when-cross-origin] 283 Referrer-Policy: [strict-origin-when-cross-origin]
282 Transfer-Encoding: [chunked] 284 Transfer-Encoding: [chunked]
283 Vary: ['Accept-Encoding, Origin'] 285 Vary: ['Accept-Encoding, Origin']
@@ -285,10 +287,10 @@ interactions:
285 X-Download-Options: [noopen] 287 X-Download-Options: [noopen]
286 X-Frame-Options: [SAMEORIGIN] 288 X-Frame-Options: [SAMEORIGIN]
287 X-Permitted-Cross-Domain-Policies: [none] 289 X-Permitted-Cross-Domain-Policies: [none]
288 X-Request-Id: [0f5df72d-97aa-4eea-8049-aa6c9bcb819d] 290 X-Request-Id: [226a577e-da14-4704-9dbc-030e01583697]
289 X-Runtime: ['0.017421'] 291 X-Runtime: ['0.041821']
290 X-XSS-Protection: [1; mode=block] 292 X-XSS-Protection: [1; mode=block]
291 content-length: ['550'] 293 content-length: ['551']
292 status: {code: 200, message: OK} 294 status: {code: 200, message: OK}
293- request: 295- request:
294 body: account_ids%5B%5D=1 296 body: account_ids%5B%5D=1
@@ -301,13 +303,13 @@ interactions:
301 Content-Type: [application/x-www-form-urlencoded] 303 Content-Type: [application/x-www-form-urlencoded]
302 User-Agent: [python-requests/2.18.4] 304 User-Agent: [python-requests/2.18.4]
303 method: DELETE 305 method: DELETE
304 uri: http://localhost:3000/api/v1/lists/8/accounts 306 uri: http://localhost:3000/api/v1/lists/11/accounts
305 response: 307 response:
306 body: {string: '{}'} 308 body: {string: '{}'}
307 headers: 309 headers:
308 Cache-Control: ['max-age=0, private, must-revalidate'] 310 Cache-Control: ['max-age=0, private, must-revalidate']
309 Content-Type: [application/json; charset=utf-8] 311 Content-Type: [application/json; charset=utf-8]
310 ETag: [W/"bf92612b432ba5b51a56b55e4c0b9817"] 312 ETag: [W/"0cdb2e7c6eb5550ff52103826ed9e2cd"]
311 Referrer-Policy: [strict-origin-when-cross-origin] 313 Referrer-Policy: [strict-origin-when-cross-origin]
312 Transfer-Encoding: [chunked] 314 Transfer-Encoding: [chunked]
313 Vary: ['Accept-Encoding, Origin'] 315 Vary: ['Accept-Encoding, Origin']
@@ -315,8 +317,8 @@ interactions:
315 X-Download-Options: [noopen] 317 X-Download-Options: [noopen]
316 X-Frame-Options: [SAMEORIGIN] 318 X-Frame-Options: [SAMEORIGIN]
317 X-Permitted-Cross-Domain-Policies: [none] 319 X-Permitted-Cross-Domain-Policies: [none]
318 X-Request-Id: [82e03414-ef8d-413f-8805-4bc9b49aef92] 320 X-Request-Id: [00b2aa70-ee0c-49e9-a9d4-8830f70a010d]
319 X-Runtime: ['0.024025'] 321 X-Runtime: ['0.056654']
320 X-XSS-Protection: [1; mode=block] 322 X-XSS-Protection: [1; mode=block]
321 content-length: ['2'] 323 content-length: ['2']
322 status: {code: 200, message: OK} 324 status: {code: 200, message: OK}
@@ -329,13 +331,13 @@ interactions:
329 Connection: [keep-alive] 331 Connection: [keep-alive]
330 User-Agent: [python-requests/2.18.4] 332 User-Agent: [python-requests/2.18.4]
331 method: GET 333 method: GET
332 uri: http://localhost:3000/api/v1/lists/8/accounts 334 uri: http://localhost:3000/api/v1/lists/11/accounts
333 response: 335 response:
334 body: {string: '[]'} 336 body: {string: '[]'}
335 headers: 337 headers:
336 Cache-Control: ['max-age=0, private, must-revalidate'] 338 Cache-Control: ['max-age=0, private, must-revalidate']
337 Content-Type: [application/json; charset=utf-8] 339 Content-Type: [application/json; charset=utf-8]
338 ETag: [W/"d77e610161dd1bed88178cffc05bb02a"] 340 ETag: [W/"6fddf1677be1263a4a2fd127d789d19a"]
339 Referrer-Policy: [strict-origin-when-cross-origin] 341 Referrer-Policy: [strict-origin-when-cross-origin]
340 Transfer-Encoding: [chunked] 342 Transfer-Encoding: [chunked]
341 Vary: ['Accept-Encoding, Origin'] 343 Vary: ['Accept-Encoding, Origin']
@@ -343,8 +345,8 @@ interactions:
343 X-Download-Options: [noopen] 345 X-Download-Options: [noopen]
344 X-Frame-Options: [SAMEORIGIN] 346 X-Frame-Options: [SAMEORIGIN]
345 X-Permitted-Cross-Domain-Policies: [none] 347 X-Permitted-Cross-Domain-Policies: [none]
346 X-Request-Id: [bdc94f0f-6992-4c10-8b52-cdc10e876de9] 348 X-Request-Id: [6cf79d0c-2111-4260-a813-7584129f2ed5]
347 X-Runtime: ['0.021202'] 349 X-Runtime: ['0.047343']
348 X-XSS-Protection: [1; mode=block] 350 X-XSS-Protection: [1; mode=block]
349 content-length: ['2'] 351 content-length: ['2']
350 status: {code: 200, message: OK} 352 status: {code: 200, message: OK}
@@ -364,7 +366,7 @@ interactions:
364 headers: 366 headers:
365 Cache-Control: ['max-age=0, private, must-revalidate'] 367 Cache-Control: ['max-age=0, private, must-revalidate']
366 Content-Type: [application/json; charset=utf-8] 368 Content-Type: [application/json; charset=utf-8]
367 ETag: [W/"8afbf44289c39f499be3ca55837eced5"] 369 ETag: [W/"72b6665162a1eb117de3887134c94c6d"]
368 Referrer-Policy: [strict-origin-when-cross-origin] 370 Referrer-Policy: [strict-origin-when-cross-origin]
369 Transfer-Encoding: [chunked] 371 Transfer-Encoding: [chunked]
370 Vary: ['Accept-Encoding, Origin'] 372 Vary: ['Accept-Encoding, Origin']
@@ -372,8 +374,8 @@ interactions:
372 X-Download-Options: [noopen] 374 X-Download-Options: [noopen]
373 X-Frame-Options: [SAMEORIGIN] 375 X-Frame-Options: [SAMEORIGIN]
374 X-Permitted-Cross-Domain-Policies: [none] 376 X-Permitted-Cross-Domain-Policies: [none]
375 X-Request-Id: [5d35fd25-ad27-4d3c-8188-fce3458621f1] 377 X-Request-Id: [0c0227f0-d6d0-4326-9fbd-609347c580cc]
376 X-Runtime: ['0.044831'] 378 X-Runtime: ['0.096583']
377 X-XSS-Protection: [1; mode=block] 379 X-XSS-Protection: [1; mode=block]
378 content-length: ['175'] 380 content-length: ['175']
379 status: {code: 200, message: OK} 381 status: {code: 200, message: OK}
@@ -387,13 +389,13 @@ interactions:
387 Content-Length: ['0'] 389 Content-Length: ['0']
388 User-Agent: [python-requests/2.18.4] 390 User-Agent: [python-requests/2.18.4]
389 method: DELETE 391 method: DELETE
390 uri: http://localhost:3000/api/v1/lists/8 392 uri: http://localhost:3000/api/v1/lists/11
391 response: 393 response:
392 body: {string: '{}'} 394 body: {string: '{}'}
393 headers: 395 headers:
394 Cache-Control: ['max-age=0, private, must-revalidate'] 396 Cache-Control: ['max-age=0, private, must-revalidate']
395 Content-Type: [application/json; charset=utf-8] 397 Content-Type: [application/json; charset=utf-8]
396 ETag: [W/"bf92612b432ba5b51a56b55e4c0b9817"] 398 ETag: [W/"0cdb2e7c6eb5550ff52103826ed9e2cd"]
397 Referrer-Policy: [strict-origin-when-cross-origin] 399 Referrer-Policy: [strict-origin-when-cross-origin]
398 Transfer-Encoding: [chunked] 400 Transfer-Encoding: [chunked]
399 Vary: ['Accept-Encoding, Origin'] 401 Vary: ['Accept-Encoding, Origin']
@@ -401,8 +403,8 @@ interactions:
401 X-Download-Options: [noopen] 403 X-Download-Options: [noopen]
402 X-Frame-Options: [SAMEORIGIN] 404 X-Frame-Options: [SAMEORIGIN]
403 X-Permitted-Cross-Domain-Policies: [none] 405 X-Permitted-Cross-Domain-Policies: [none]
404 X-Request-Id: [491e273f-5142-46a4-9718-23174c02ec15] 406 X-Request-Id: [4dd258a5-af4e-403e-ac35-3703e6428f76]
405 X-Runtime: ['0.021338'] 407 X-Runtime: ['0.064121']
406 X-XSS-Protection: [1; mode=block] 408 X-XSS-Protection: [1; mode=block]
407 content-length: ['2'] 409 content-length: ['2']
408 status: {code: 200, message: OK} 410 status: {code: 200, message: OK}
diff --git a/tests/cassettes/test_list_by_account.yaml b/tests/cassettes/test_list_by_account.yaml
index 6340e83..d74accb 100644
--- a/tests/cassettes/test_list_by_account.yaml
+++ b/tests/cassettes/test_list_by_account.yaml
@@ -12,11 +12,11 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/lists 13 uri: http://localhost:3000/api/v1/lists
14 response: 14 response:
15 body: {string: '{"id":"9","title":"ham burglars"}'} 15 body: {string: '{"id":"12","title":"ham burglars"}'}
16 headers: 16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"0cfb62ec28516f1f944d1edde5fbaa35"] 19 ETag: [W/"9d25791829ea38f2ad58d7f62532e947"]
20 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
21 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -24,10 +24,10 @@ interactions:
24 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
25 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
26 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
27 X-Request-Id: [e1f21d90-93e8-4014-bf33-a7cdc349e9aa] 27 X-Request-Id: [e66b2030-01e8-4ebf-9674-73adf96695df]
28 X-Runtime: ['0.021446'] 28 X-Runtime: ['0.043475']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['33'] 30 content-length: ['34']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
32- request: 32- request:
33 body: null 33 body: null
@@ -40,11 +40,11 @@ interactions:
40 method: GET 40 method: GET
41 uri: http://localhost:3000/api/v1/accounts/verify_credentials 41 uri: http://localhost:3000/api/v1/accounts/verify_credentials
42 response: 42 response:
43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":5,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":67,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
44 headers: 44 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"2c1db1f5c9c342772002bf0d4ff450ec"] 47 ETag: [W/"5211bab11227593f32fe99dfc5c25984"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 48 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
@@ -52,28 +52,29 @@ interactions:
52 X-Download-Options: [noopen] 52 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 54 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [0047cb29-9a8b-472b-b820-b82e628d36c0] 55 X-Request-Id: [0ded0bcc-1c0d-447a-8f61-ed7192620979]
56 X-Runtime: ['0.017867'] 56 X-Runtime: ['0.277921']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['634'] 58 content-length: ['635']
59 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
60- request: 60- request:
61 body: null 61 body: reblogs=True&id=1
62 headers: 62 headers:
63 Accept: ['*/*'] 63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate'] 64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive] 66 Connection: [keep-alive]
67 Content-Length: ['0'] 67 Content-Length: ['17']
68 Content-Type: [application/x-www-form-urlencoded]
68 User-Agent: [python-requests/2.18.4] 69 User-Agent: [python-requests/2.18.4]
69 method: POST 70 method: POST
70 uri: http://localhost:3000/api/v1/accounts/1/follow 71 uri: http://localhost:3000/api/v1/accounts/1/follow
71 response: 72 response:
72 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 73 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
73 headers: 74 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 75 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 76 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"d0a82968c8f9aeedda238946aae1989a"] 77 ETag: [W/"104706c5d5a5d4d87780cdec31e76836"]
77 Referrer-Policy: [strict-origin-when-cross-origin] 78 Referrer-Policy: [strict-origin-when-cross-origin]
78 Transfer-Encoding: [chunked] 79 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin'] 80 Vary: ['Accept-Encoding, Origin']
@@ -81,10 +82,10 @@ interactions:
81 X-Download-Options: [noopen] 82 X-Download-Options: [noopen]
82 X-Frame-Options: [SAMEORIGIN] 83 X-Frame-Options: [SAMEORIGIN]
83 X-Permitted-Cross-Domain-Policies: [none] 84 X-Permitted-Cross-Domain-Policies: [none]
84 X-Request-Id: [76639bf0-e7fe-4c88-8bc9-e0c7de46e577] 85 X-Request-Id: [4dbf24ce-460a-4457-b3a5-62dd116f7ca9]
85 X-Runtime: ['0.072864'] 86 X-Runtime: ['0.078180']
86 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
87 content-length: ['174'] 88 content-length: ['173']
88 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
89- request: 90- request:
90 body: account_ids%5B%5D=1 91 body: account_ids%5B%5D=1
@@ -97,13 +98,13 @@ interactions:
97 Content-Type: [application/x-www-form-urlencoded] 98 Content-Type: [application/x-www-form-urlencoded]
98 User-Agent: [python-requests/2.18.4] 99 User-Agent: [python-requests/2.18.4]
99 method: POST 100 method: POST
100 uri: http://localhost:3000/api/v1/lists/9/accounts 101 uri: http://localhost:3000/api/v1/lists/12/accounts
101 response: 102 response:
102 body: {string: '{}'} 103 body: {string: '{}'}
103 headers: 104 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 105 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 106 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] 107 ETag: [W/"0cdb2e7c6eb5550ff52103826ed9e2cd"]
107 Referrer-Policy: [strict-origin-when-cross-origin] 108 Referrer-Policy: [strict-origin-when-cross-origin]
108 Transfer-Encoding: [chunked] 109 Transfer-Encoding: [chunked]
109 Vary: ['Accept-Encoding, Origin'] 110 Vary: ['Accept-Encoding, Origin']
@@ -111,8 +112,8 @@ interactions:
111 X-Download-Options: [noopen] 112 X-Download-Options: [noopen]
112 X-Frame-Options: [SAMEORIGIN] 113 X-Frame-Options: [SAMEORIGIN]
113 X-Permitted-Cross-Domain-Policies: [none] 114 X-Permitted-Cross-Domain-Policies: [none]
114 X-Request-Id: [f3b0ce92-006d-410e-8d01-f0f93cc7443b] 115 X-Request-Id: [66b91f80-7290-4b31-9318-8f2b129b2be7]
115 X-Runtime: ['0.048021'] 116 X-Runtime: ['0.058322']
116 X-XSS-Protection: [1; mode=block] 117 X-XSS-Protection: [1; mode=block]
117 content-length: ['2'] 118 content-length: ['2']
118 status: {code: 200, message: OK} 119 status: {code: 200, message: OK}
@@ -127,11 +128,11 @@ interactions:
127 method: GET 128 method: GET
128 uri: http://localhost:3000/api/v1/accounts/1/lists 129 uri: http://localhost:3000/api/v1/accounts/1/lists
129 response: 130 response:
130 body: {string: '[{"id":"9","title":"ham burglars"}]'} 131 body: {string: '[{"id":"12","title":"ham burglars"}]'}
131 headers: 132 headers:
132 Cache-Control: ['max-age=0, private, must-revalidate'] 133 Cache-Control: ['max-age=0, private, must-revalidate']
133 Content-Type: [application/json; charset=utf-8] 134 Content-Type: [application/json; charset=utf-8]
134 ETag: [W/"a2969b9e5d7329b172f845038528a9f8"] 135 ETag: [W/"403cd5e122640c4a0e94ec6f21466511"]
135 Referrer-Policy: [strict-origin-when-cross-origin] 136 Referrer-Policy: [strict-origin-when-cross-origin]
136 Transfer-Encoding: [chunked] 137 Transfer-Encoding: [chunked]
137 Vary: ['Accept-Encoding, Origin'] 138 Vary: ['Accept-Encoding, Origin']
@@ -139,10 +140,10 @@ interactions:
139 X-Download-Options: [noopen] 140 X-Download-Options: [noopen]
140 X-Frame-Options: [SAMEORIGIN] 141 X-Frame-Options: [SAMEORIGIN]
141 X-Permitted-Cross-Domain-Policies: [none] 142 X-Permitted-Cross-Domain-Policies: [none]
142 X-Request-Id: [591c3ebd-0fa5-4efb-aa0a-b3ccf251c4ef] 143 X-Request-Id: [0e41c009-30b7-4135-91bb-3f745842a841]
143 X-Runtime: ['0.027378'] 144 X-Runtime: ['0.062819']
144 X-XSS-Protection: [1; mode=block] 145 X-XSS-Protection: [1; mode=block]
145 content-length: ['35'] 146 content-length: ['36']
146 status: {code: 200, message: OK} 147 status: {code: 200, message: OK}
147- request: 148- request:
148 body: null 149 body: null
@@ -160,7 +161,7 @@ interactions:
160 headers: 161 headers:
161 Cache-Control: ['max-age=0, private, must-revalidate'] 162 Cache-Control: ['max-age=0, private, must-revalidate']
162 Content-Type: [application/json; charset=utf-8] 163 Content-Type: [application/json; charset=utf-8]
163 ETag: [W/"78d855ca7c8355ade68a375107a29ae3"] 164 ETag: [W/"8f29f445514fac6569926c516a323b44"]
164 Referrer-Policy: [strict-origin-when-cross-origin] 165 Referrer-Policy: [strict-origin-when-cross-origin]
165 Transfer-Encoding: [chunked] 166 Transfer-Encoding: [chunked]
166 Vary: ['Accept-Encoding, Origin'] 167 Vary: ['Accept-Encoding, Origin']
@@ -168,8 +169,8 @@ interactions:
168 X-Download-Options: [noopen] 169 X-Download-Options: [noopen]
169 X-Frame-Options: [SAMEORIGIN] 170 X-Frame-Options: [SAMEORIGIN]
170 X-Permitted-Cross-Domain-Policies: [none] 171 X-Permitted-Cross-Domain-Policies: [none]
171 X-Request-Id: [227aee7e-4f8d-4dec-9e27-813b9870fe39] 172 X-Request-Id: [528732f0-22b6-4e38-add7-c40b233f1616]
172 X-Runtime: ['0.042813'] 173 X-Runtime: ['0.085867']
173 X-XSS-Protection: [1; mode=block] 174 X-XSS-Protection: [1; mode=block]
174 content-length: ['175'] 175 content-length: ['175']
175 status: {code: 200, message: OK} 176 status: {code: 200, message: OK}
@@ -183,13 +184,13 @@ interactions:
183 Content-Length: ['0'] 184 Content-Length: ['0']
184 User-Agent: [python-requests/2.18.4] 185 User-Agent: [python-requests/2.18.4]
185 method: DELETE 186 method: DELETE
186 uri: http://localhost:3000/api/v1/lists/9 187 uri: http://localhost:3000/api/v1/lists/12
187 response: 188 response:
188 body: {string: '{}'} 189 body: {string: '{}'}
189 headers: 190 headers:
190 Cache-Control: ['max-age=0, private, must-revalidate'] 191 Cache-Control: ['max-age=0, private, must-revalidate']
191 Content-Type: [application/json; charset=utf-8] 192 Content-Type: [application/json; charset=utf-8]
192 ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] 193 ETag: [W/"ffab38e79475e4159e128e2821989fd2"]
193 Referrer-Policy: [strict-origin-when-cross-origin] 194 Referrer-Policy: [strict-origin-when-cross-origin]
194 Transfer-Encoding: [chunked] 195 Transfer-Encoding: [chunked]
195 Vary: ['Accept-Encoding, Origin'] 196 Vary: ['Accept-Encoding, Origin']
@@ -197,8 +198,8 @@ interactions:
197 X-Download-Options: [noopen] 198 X-Download-Options: [noopen]
198 X-Frame-Options: [SAMEORIGIN] 199 X-Frame-Options: [SAMEORIGIN]
199 X-Permitted-Cross-Domain-Policies: [none] 200 X-Permitted-Cross-Domain-Policies: [none]
200 X-Request-Id: [76ebc393-c790-40fd-abb3-dcd7d35e351e] 201 X-Request-Id: [30abb974-4601-4cd7-9587-aba15accc618]
201 X-Runtime: ['0.047284'] 202 X-Runtime: ['0.056331']
202 X-XSS-Protection: [1; mode=block] 203 X-XSS-Protection: [1; mode=block]
203 content-length: ['2'] 204 content-length: ['2']
204 status: {code: 200, message: OK} 205 status: {code: 200, message: OK}
diff --git a/tests/cassettes/test_list_timeline.yaml b/tests/cassettes/test_list_timeline.yaml
index 06aa961..e4246b3 100644
--- a/tests/cassettes/test_list_timeline.yaml
+++ b/tests/cassettes/test_list_timeline.yaml
@@ -12,11 +12,11 @@ interactions:
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/lists 13 uri: http://localhost:3000/api/v1/lists
14 response: 14 response:
15 body: {string: '{"id":"10","title":"ham burglars"}'} 15 body: {string: '{"id":"13","title":"ham burglars"}'}
16 headers: 16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"14287cb42ec1ab07b6aa44c5f19b5c1d"] 19 ETag: [W/"08ee126e4426f4c3dcc15b490a31c7df"]
20 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
21 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -24,8 +24,8 @@ interactions:
24 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
25 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
26 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
27 X-Request-Id: [824c6ec5-88ea-4469-aa5b-f9f20a9c6550] 27 X-Request-Id: [93aed641-d8d7-4a2a-a4c2-fd803add1424]
28 X-Runtime: ['0.020458'] 28 X-Runtime: ['0.036909']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['34'] 30 content-length: ['34']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
@@ -40,11 +40,11 @@ interactions:
40 method: GET 40 method: GET
41 uri: http://localhost:3000/api/v1/accounts/verify_credentials 41 uri: http://localhost:3000/api/v1/accounts/verify_credentials
42 response: 42 response:
43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":5,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'} 43 body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":67,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[]},"emojis":[],"fields":[]}'}
44 headers: 44 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 45 Cache-Control: ['max-age=0, private, must-revalidate']
46 Content-Type: [application/json; charset=utf-8] 46 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"e8cc773e17c063bb46d8192abb677e46"] 47 ETag: [W/"7d5513dfb7003f3c2fffbb3f9e8c4e0d"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 48 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 49 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 50 Vary: ['Accept-Encoding, Origin']
@@ -52,28 +52,29 @@ interactions:
52 X-Download-Options: [noopen] 52 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 54 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [f4bf71a3-0740-4afc-b4d8-3ac675cc1d26] 55 X-Request-Id: [bd7b5669-1805-403f-94cb-22c72d70e230]
56 X-Runtime: ['0.018511'] 56 X-Runtime: ['0.050034']
57 X-XSS-Protection: [1; mode=block] 57 X-XSS-Protection: [1; mode=block]
58 content-length: ['634'] 58 content-length: ['635']
59 status: {code: 200, message: OK} 59 status: {code: 200, message: OK}
60- request: 60- request:
61 body: null 61 body: reblogs=True&id=1
62 headers: 62 headers:
63 Accept: ['*/*'] 63 Accept: ['*/*']
64 Accept-Encoding: ['gzip, deflate'] 64 Accept-Encoding: ['gzip, deflate']
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
66 Connection: [keep-alive] 66 Connection: [keep-alive]
67 Content-Length: ['0'] 67 Content-Length: ['17']
68 Content-Type: [application/x-www-form-urlencoded]
68 User-Agent: [python-requests/2.18.4] 69 User-Agent: [python-requests/2.18.4]
69 method: POST 70 method: POST
70 uri: http://localhost:3000/api/v1/accounts/1/follow 71 uri: http://localhost:3000/api/v1/accounts/1/follow
71 response: 72 response:
72 body: {string: '{"id":"1","following":true,"showing_reblogs":false,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'} 73 body: {string: '{"id":"1","following":true,"showing_reblogs":true,"followed_by":false,"blocking":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false}'}
73 headers: 74 headers:
74 Cache-Control: ['max-age=0, private, must-revalidate'] 75 Cache-Control: ['max-age=0, private, must-revalidate']
75 Content-Type: [application/json; charset=utf-8] 76 Content-Type: [application/json; charset=utf-8]
76 ETag: [W/"d0a82968c8f9aeedda238946aae1989a"] 77 ETag: [W/"166b4a474c2b011ac5850811efaa62e2"]
77 Referrer-Policy: [strict-origin-when-cross-origin] 78 Referrer-Policy: [strict-origin-when-cross-origin]
78 Transfer-Encoding: [chunked] 79 Transfer-Encoding: [chunked]
79 Vary: ['Accept-Encoding, Origin'] 80 Vary: ['Accept-Encoding, Origin']
@@ -81,10 +82,10 @@ interactions:
81 X-Download-Options: [noopen] 82 X-Download-Options: [noopen]
82 X-Frame-Options: [SAMEORIGIN] 83 X-Frame-Options: [SAMEORIGIN]
83 X-Permitted-Cross-Domain-Policies: [none] 84 X-Permitted-Cross-Domain-Policies: [none]
84 X-Request-Id: [e40ee840-b7fe-4dbb-85ec-a184f5064c43] 85 X-Request-Id: [8c68d798-7421-46cc-a73c-e72a3cd0f117]
85 X-Runtime: ['0.084309'] 86 X-Runtime: ['0.097679']
86 X-XSS-Protection: [1; mode=block] 87 X-XSS-Protection: [1; mode=block]
87 content-length: ['174'] 88 content-length: ['173']
88 status: {code: 200, message: OK} 89 status: {code: 200, message: OK}
89- request: 90- request:
90 body: account_ids%5B%5D=1 91 body: account_ids%5B%5D=1
@@ -97,13 +98,13 @@ interactions:
97 Content-Type: [application/x-www-form-urlencoded] 98 Content-Type: [application/x-www-form-urlencoded]
98 User-Agent: [python-requests/2.18.4] 99 User-Agent: [python-requests/2.18.4]
99 method: POST 100 method: POST
100 uri: http://localhost:3000/api/v1/lists/10/accounts 101 uri: http://localhost:3000/api/v1/lists/13/accounts
101 response: 102 response:
102 body: {string: '{}'} 103 body: {string: '{}'}
103 headers: 104 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 105 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 106 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"f39c5a269dd640bacf5a55db8d2d3e90"] 107 ETag: [W/"ffab38e79475e4159e128e2821989fd2"]
107 Referrer-Policy: [strict-origin-when-cross-origin] 108 Referrer-Policy: [strict-origin-when-cross-origin]
108 Transfer-Encoding: [chunked] 109 Transfer-Encoding: [chunked]
109 Vary: ['Accept-Encoding, Origin'] 110 Vary: ['Accept-Encoding, Origin']
@@ -111,8 +112,8 @@ interactions:
111 X-Download-Options: [noopen] 112 X-Download-Options: [noopen]
112 X-Frame-Options: [SAMEORIGIN] 113 X-Frame-Options: [SAMEORIGIN]
113 X-Permitted-Cross-Domain-Policies: [none] 114 X-Permitted-Cross-Domain-Policies: [none]
114 X-Request-Id: [a6d6eb3d-c6af-4f7f-b2d7-21635c1d3971] 115 X-Request-Id: [626a4239-5798-47cd-86ce-a2c78e2b472c]
115 X-Runtime: ['0.040148'] 116 X-Runtime: ['0.051662']
116 X-XSS-Protection: [1; mode=block] 117 X-XSS-Protection: [1; mode=block]
117 content-length: ['2'] 118 content-length: ['2']
118 status: {code: 200, message: OK} 119 status: {code: 200, message: OK}
@@ -129,13 +130,13 @@ interactions:
129 method: POST 130 method: POST
130 uri: http://localhost:3000/api/v1/statuses 131 uri: http://localhost:3000/api/v1/statuses
131 response: 132 response:
132 body: {string: '{"id":"100369507189110184","created_at":"2018-07-13T21:25:38.523Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100369507189110184","content":"\u003cp\u003eI 133 body: {string: '{"id":"100465052062847543","created_at":"2018-07-30T18:23:57.880Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100465052062847543","content":"\u003cp\u003eI
133 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100369507189110184","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 134 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100465052062847543","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
134 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":6,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 135 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":68,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
135 headers: 136 headers:
136 Cache-Control: ['max-age=0, private, must-revalidate'] 137 Cache-Control: ['max-age=0, private, must-revalidate']
137 Content-Type: [application/json; charset=utf-8] 138 Content-Type: [application/json; charset=utf-8]
138 ETag: [W/"f38648e739a25f995ed7d242b59a0a04"] 139 ETag: [W/"cd2e3ed193ead95de59673b883f9a7e7"]
139 Referrer-Policy: [strict-origin-when-cross-origin] 140 Referrer-Policy: [strict-origin-when-cross-origin]
140 Transfer-Encoding: [chunked] 141 Transfer-Encoding: [chunked]
141 Vary: ['Accept-Encoding, Origin'] 142 Vary: ['Accept-Encoding, Origin']
@@ -143,10 +144,10 @@ interactions:
143 X-Download-Options: [noopen] 144 X-Download-Options: [noopen]
144 X-Frame-Options: [SAMEORIGIN] 145 X-Frame-Options: [SAMEORIGIN]
145 X-Permitted-Cross-Domain-Policies: [none] 146 X-Permitted-Cross-Domain-Policies: [none]
146 X-Request-Id: [5249cbf5-d705-4c5b-a4e0-9681f9e55b80] 147 X-Request-Id: [fde17c71-c6fe-4ef2-86a0-00d835c2888c]
147 X-Runtime: ['0.133811'] 148 X-Runtime: ['0.660351']
148 X-XSS-Protection: [1; mode=block] 149 X-XSS-Protection: [1; mode=block]
149 content-length: ['1196'] 150 content-length: ['1197']
150 status: {code: 200, message: OK} 151 status: {code: 200, message: OK}
151- request: 152- request:
152 body: null 153 body: null
@@ -157,17 +158,17 @@ interactions:
157 Connection: [keep-alive] 158 Connection: [keep-alive]
158 User-Agent: [python-requests/2.18.4] 159 User-Agent: [python-requests/2.18.4]
159 method: GET 160 method: GET
160 uri: http://localhost:3000/api/v1/timelines/list/10 161 uri: http://localhost:3000/api/v1/timelines/list/13
161 response: 162 response:
162 body: {string: '[{"id":"100369507189110184","created_at":"2018-07-13T21:25:38.523Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100369507189110184","content":"\u003cp\u003eI 163 body: {string: '[{"id":"100465052062847543","created_at":"2018-07-30T18:23:57.880Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/100465052062847543","content":"\u003cp\u003eI
163 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100369507189110184","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py 164 have never stolen a ham in my life.\u003c/p\u003e","url":"http://localhost:3000/@admin/100465052062847543","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py
164 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":6,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'} 165 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2018-07-13T19:35:33.303Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":68,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}]'}
165 headers: 166 headers:
166 Cache-Control: ['max-age=0, private, must-revalidate'] 167 Cache-Control: ['max-age=0, private, must-revalidate']
167 Content-Type: [application/json; charset=utf-8] 168 Content-Type: [application/json; charset=utf-8]
168 ETag: [W/"5ca2946eb36f6fc5ffe06ca64054b80a"] 169 ETag: [W/"60e2292459fabb6aeeea2876de810795"]
169 Link: ['<http://localhost:3000/api/v1/timelines/list/10?max_id=100369507189110184>; 170 Link: ['<http://localhost:3000/api/v1/timelines/list/13?max_id=100465052062847543>;
170 rel="next", <http://localhost:3000/api/v1/timelines/list/10?since_id=100369507189110184>; 171 rel="next", <http://localhost:3000/api/v1/timelines/list/13?since_id=100465052062847543>;
171 rel="prev"'] 172 rel="prev"']
172 Referrer-Policy: [strict-origin-when-cross-origin] 173 Referrer-Policy: [strict-origin-when-cross-origin]
173 Transfer-Encoding: [chunked] 174 Transfer-Encoding: [chunked]
@@ -176,10 +177,10 @@ interactions:
176 X-Download-Options: [noopen] 177 X-Download-Options: [noopen]
177 X-Frame-Options: [SAMEORIGIN] 178 X-Frame-Options: [SAMEORIGIN]
178 X-Permitted-Cross-Domain-Policies: [none] 179 X-Permitted-Cross-Domain-Policies: [none]
179 X-Request-Id: [0a8771de-01e5-47ea-b308-c39646919149] 180 X-Request-Id: [90e19e55-3f2f-4de8-88e1-e06783835a34]
180 X-Runtime: ['0.063009'] 181 X-Runtime: ['0.114401']
181 X-XSS-Protection: [1; mode=block] 182 X-XSS-Protection: [1; mode=block]
182 content-length: ['1183'] 183 content-length: ['1184']
183 status: {code: 200, message: OK} 184 status: {code: 200, message: OK}
184- request: 185- request:
185 body: null 186 body: null
@@ -191,13 +192,13 @@ interactions:
191 Content-Length: ['0'] 192 Content-Length: ['0']
192 User-Agent: [python-requests/2.18.4] 193 User-Agent: [python-requests/2.18.4]
193 method: DELETE 194 method: DELETE
194 uri: http://localhost:3000/api/v1/statuses/100369507189110184 195 uri: http://localhost:3000/api/v1/statuses/100465052062847543
195 response: 196 response:
196 body: {string: '{}'} 197 body: {string: '{}'}
197 headers: 198 headers:
198 Cache-Control: ['max-age=0, private, must-revalidate'] 199 Cache-Control: ['max-age=0, private, must-revalidate']
199 Content-Type: [application/json; charset=utf-8] 200 Content-Type: [application/json; charset=utf-8]
200 ETag: [W/"e550419afbc20eb5dd0d734baac1e28c"] 201 ETag: [W/"c7fe7763c986dce23b2aa864997670c6"]
201 Referrer-Policy: [strict-origin-when-cross-origin] 202 Referrer-Policy: [strict-origin-when-cross-origin]
202 Transfer-Encoding: [chunked] 203 Transfer-Encoding: [chunked]
203 Vary: ['Accept-Encoding, Origin'] 204 Vary: ['Accept-Encoding, Origin']
@@ -205,8 +206,8 @@ interactions:
205 X-Download-Options: [noopen] 206 X-Download-Options: [noopen]
206 X-Frame-Options: [SAMEORIGIN] 207 X-Frame-Options: [SAMEORIGIN]
207 X-Permitted-Cross-Domain-Policies: [none] 208 X-Permitted-Cross-Domain-Policies: [none]
208 X-Request-Id: [3fa84a36-8f29-4766-ad4b-008c536f9f0b] 209 X-Request-Id: [8e41a094-2f2c-48b5-93d5-008aeec044fe]
209 X-Runtime: ['0.023745'] 210 X-Runtime: ['0.029226']
210 X-XSS-Protection: [1; mode=block] 211 X-XSS-Protection: [1; mode=block]
211 content-length: ['2'] 212 content-length: ['2']
212 status: {code: 200, message: OK} 213 status: {code: 200, message: OK}
@@ -226,7 +227,7 @@ interactions:
226 headers: 227 headers:
227 Cache-Control: ['max-age=0, private, must-revalidate'] 228 Cache-Control: ['max-age=0, private, must-revalidate']
228 Content-Type: [application/json; charset=utf-8] 229 Content-Type: [application/json; charset=utf-8]
229 ETag: [W/"0d26e234d9adadd5bd21d9ab0dedf7fb"] 230 ETag: [W/"a47c9ac8c40127af7818d33139c13a8b"]
230 Referrer-Policy: [strict-origin-when-cross-origin] 231 Referrer-Policy: [strict-origin-when-cross-origin]
231 Transfer-Encoding: [chunked] 232 Transfer-Encoding: [chunked]
232 Vary: ['Accept-Encoding, Origin'] 233 Vary: ['Accept-Encoding, Origin']
@@ -234,8 +235,8 @@ interactions:
234 X-Download-Options: [noopen] 235 X-Download-Options: [noopen]
235 X-Frame-Options: [SAMEORIGIN] 236 X-Frame-Options: [SAMEORIGIN]
236 X-Permitted-Cross-Domain-Policies: [none] 237 X-Permitted-Cross-Domain-Policies: [none]
237 X-Request-Id: [df5c6bed-aa7b-4409-a195-f4a31b48f5c4] 238 X-Request-Id: [5e12d6ff-d52c-4a34-bec4-0d58e4e1b397]
238 X-Runtime: ['0.105460'] 239 X-Runtime: ['0.074404']
239 X-XSS-Protection: [1; mode=block] 240 X-XSS-Protection: [1; mode=block]
240 content-length: ['175'] 241 content-length: ['175']
241 status: {code: 200, message: OK} 242 status: {code: 200, message: OK}
@@ -249,13 +250,13 @@ interactions:
249 Content-Length: ['0'] 250 Content-Length: ['0']
250 User-Agent: [python-requests/2.18.4] 251 User-Agent: [python-requests/2.18.4]
251 method: DELETE 252 method: DELETE
252 uri: http://localhost:3000/api/v1/lists/10 253 uri: http://localhost:3000/api/v1/lists/13
253 response: 254 response:
254 body: {string: '{}'} 255 body: {string: '{}'}
255 headers: 256 headers:
256 Cache-Control: ['max-age=0, private, must-revalidate'] 257 Cache-Control: ['max-age=0, private, must-revalidate']
257 Content-Type: [application/json; charset=utf-8] 258 Content-Type: [application/json; charset=utf-8]
258 ETag: [W/"e550419afbc20eb5dd0d734baac1e28c"] 259 ETag: [W/"c7fe7763c986dce23b2aa864997670c6"]
259 Referrer-Policy: [strict-origin-when-cross-origin] 260 Referrer-Policy: [strict-origin-when-cross-origin]
260 Transfer-Encoding: [chunked] 261 Transfer-Encoding: [chunked]
261 Vary: ['Accept-Encoding, Origin'] 262 Vary: ['Accept-Encoding, Origin']
@@ -263,8 +264,8 @@ interactions:
263 X-Download-Options: [noopen] 264 X-Download-Options: [noopen]
264 X-Frame-Options: [SAMEORIGIN] 265 X-Frame-Options: [SAMEORIGIN]
265 X-Permitted-Cross-Domain-Policies: [none] 266 X-Permitted-Cross-Domain-Policies: [none]
266 X-Request-Id: [a7d88e2f-5c75-4338-a386-944ee12bd7f9] 267 X-Request-Id: [7a18d813-0ceb-4961-a5c8-22ab8c3b078a]
267 X-Runtime: ['0.036622'] 268 X-Runtime: ['0.070349']
268 X-XSS-Protection: [1; mode=block] 269 X-XSS-Protection: [1; mode=block]
269 content-length: ['2'] 270 content-length: ['2']
270 status: {code: 200, message: OK} 271 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)