Skip to content

Commit

Permalink
commit new set of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy authored and halcy committed Dec 1, 2022
1 parent 405e01b commit 0159bd7
Show file tree
Hide file tree
Showing 139 changed files with 8,143 additions and 8,209 deletions.
22 changes: 11 additions & 11 deletions tests/cassettes/test_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ interactions:
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
body:
string: '{"id":"109383664973470793","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}'
string: '{"id":"109440137734600341","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}'
headers:
Cache-Control:
- no-store
Content-Security-Policy:
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
style-src ''self'' http://localhost:3000 ''nonce-rcf6D1e7NeJddnHXqSNyIQ=='';
style-src ''self'' http://localhost:3000 ''nonce-Cy5N/uqTrKGHwlmoR7FTcw=='';
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
Expand All @@ -33,7 +33,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"d887be6523e872683e9740247dc747d1"
- W/"f27318be66bf5cd5cb975877b9c39886"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -49,9 +49,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- a537b0ca-bfb1-4a63-8eaa-5803c963200f
- dd8d2597-e4bd-48e8-9985-8145a3bd049e
X-Runtime:
- '0.250146'
- '0.264524'
X-XSS-Protection:
- 1; mode=block
status:
Expand All @@ -71,17 +71,17 @@ interactions:
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/accounts/109383664973470793
uri: http://localhost:3000/api/v1/accounts/109440137734600341
response:
body:
string: '{"id":"109383664973470793","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}'
string: '{"id":"109440137734600341","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}'
headers:
Cache-Control:
- no-store
Content-Security-Policy:
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
style-src ''self'' http://localhost:3000 ''nonce-1ESE1kXZk2Qm5rdkWVyCAQ=='';
style-src ''self'' http://localhost:3000 ''nonce-h4678FoF82ZbZuz3SLa9ng=='';
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
Expand All @@ -91,7 +91,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"e0ed412f6b59a7c67b5997889b052bff"
- W/"803cfcbea7e6956bea824a79edc9a9c5"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -107,9 +107,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- ef562fe0-9bbc-4e93-86a1-c862196ed83e
- 8bce9cba-f975-4fa4-b4c7-5ec14befb0b7
X-Runtime:
- '0.015499'
- '0.014808'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
34 changes: 17 additions & 17 deletions tests/cassettes/test_account_block_unblock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ interactions:
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
body:
string: '{"id":"109383664751443295","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","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":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
string: '{"id":"109440137501589086","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"","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":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
headers:
Cache-Control:
- no-store
Content-Security-Policy:
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
style-src ''self'' http://localhost:3000 ''nonce-pfW5oFKR2EQvk/D55FdHAA=='';
style-src ''self'' http://localhost:3000 ''nonce-120KGY+8M1XaeKxX6B+xWg=='';
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
Expand All @@ -33,7 +33,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"5f1b08410562cb6329b673347086f76f"
- W/"840bf348c4e8e3a07d556e2f3b7ff418"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -49,9 +49,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 1d277544-5f76-4a36-8ed6-13cf33fb584b
- 3ecff0a4-710b-4f9f-ad4c-550b0e61e8f5
X-Runtime:
- '0.014177'
- '0.015175'
X-XSS-Protection:
- 1; mode=block
status:
Expand All @@ -73,17 +73,17 @@ interactions:
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/109383664751443295/block
uri: http://localhost:3000/api/v1/accounts/109440137501589086/block
response:
body:
string: '{"id":"109383664751443295","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":true,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
string: '{"id":"109440137501589086","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":true,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Cache-Control:
- no-store
Content-Security-Policy:
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
style-src ''self'' http://localhost:3000 ''nonce-I1QOWlgyquywl0MjowIDcA=='';
style-src ''self'' http://localhost:3000 ''nonce-lzfl/kn5aAU5X4bzidBg8A=='';
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
Expand All @@ -93,7 +93,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"e68def8a544e5be1eefb56580a5780c1"
- W/"663d3dcc36bb13636c4524a65c270175"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -109,9 +109,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 8c4a829a-eaf6-481a-b25e-2d998453a8a2
- d41e4cfd-65a3-45d1-b400-ab09ca5846c7
X-Runtime:
- '0.024495'
- '0.030185'
X-XSS-Protection:
- 1; mode=block
status:
Expand All @@ -133,17 +133,17 @@ interactions:
User-Agent:
- tests/v311
method: POST
uri: http://localhost:3000/api/v1/accounts/109383664751443295/unblock
uri: http://localhost:3000/api/v1/accounts/109440137501589086/unblock
response:
body:
string: '{"id":"109383664751443295","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
string: '{"id":"109440137501589086","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
headers:
Cache-Control:
- no-store
Content-Security-Policy:
- 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
style-src ''self'' http://localhost:3000 ''nonce-Ubf+tTZZyyWK3eaDOg8+DQ=='';
style-src ''self'' http://localhost:3000 ''nonce-wcyfzmxh0QWxC/Qtdj7blQ=='';
media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
Expand All @@ -153,7 +153,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"fdde9052870e9f115f5c25c05c7e9eef"
- W/"19a1735290f397bc4442b5dc8508d01e"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -169,9 +169,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 90b51951-7df9-4a03-94d7-28086dec2571
- 18a3565a-5f30-4ef7-8823-22b9cdd14ef6
X-Runtime:
- '0.017544'
- '0.016394'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down

0 comments on commit 0159bd7

Please sign in to comment.