Skip to content

Commit

Permalink
Refresh tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy authored and halcy committed Nov 21, 2022
1 parent f782980 commit 6abaff5
Show file tree
Hide file tree
Showing 123 changed files with 74,977 additions and 74,703 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":"109367691239664003","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-19T00: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":"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}}'
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-8k2h1qeXTVSWZQ39kEDEBA=='';
style-src ''self'' http://localhost:3000 ''nonce-rcf6D1e7NeJddnHXqSNyIQ=='';
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/"92674a04a830c7267ce720489b1c0ac2"
- W/"d887be6523e872683e9740247dc747d1"
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:
- c8fd155e-e97d-4f7f-a78d-071a51610639
- a537b0ca-bfb1-4a63-8eaa-5803c963200f
X-Runtime:
- '0.234727'
- '0.250146'
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/109367691239664003
uri: http://localhost:3000/api/v1/accounts/109383664973470793
response:
body:
string: '{"id":"109367691239664003","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-19T00: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":"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":[]}'
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-M8bC+O0QQMi/uCOIhanm4w=='';
style-src ''self'' http://localhost:3000 ''nonce-1ESE1kXZk2Qm5rdkWVyCAQ=='';
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/"4931eaf82d803e4f4a0a7b82fa1ef2be"
- W/"e0ed412f6b59a7c67b5997889b052bff"
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:
- 5ca1b674-003b-491f-a506-184d220289ca
- ef562fe0-9bbc-4e93-86a1-c862196ed83e
X-Runtime:
- '0.013977'
- '0.015499'
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":"109367691027217373","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-19T00: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":"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}}'
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-Nhw/Ul7+7ECj+05xph2W2Q=='';
style-src ''self'' http://localhost:3000 ''nonce-pfW5oFKR2EQvk/D55FdHAA=='';
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/"26a41decc4abdc0f1b476cd7f7c6bc85"
- W/"5f1b08410562cb6329b673347086f76f"
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:
- 8ce59347-ccd1-48d6-8fa3-c8d1cdb67130
- 1d277544-5f76-4a36-8ed6-13cf33fb584b
X-Runtime:
- '0.013024'
- '0.014177'
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/109367691027217373/block
uri: http://localhost:3000/api/v1/accounts/109383664751443295/block
response:
body:
string: '{"id":"109367691027217373","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":"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":""}'
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-0u2U8wR2X+BuEcVsGw7/kw=='';
style-src ''self'' http://localhost:3000 ''nonce-I1QOWlgyquywl0MjowIDcA=='';
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/"4f03a16894c0ac74b939acf9e91e6617"
- W/"e68def8a544e5be1eefb56580a5780c1"
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:
- 5ee6fde9-c4de-49cd-957a-a1220a01b4ea
- 8c4a829a-eaf6-481a-b25e-2d998453a8a2
X-Runtime:
- '0.022523'
- '0.024495'
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/109367691027217373/unblock
uri: http://localhost:3000/api/v1/accounts/109383664751443295/unblock
response:
body:
string: '{"id":"109367691027217373","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":"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":""}'
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-x+TZvUv8aNWz/9BpE32gEg=='';
style-src ''self'' http://localhost:3000 ''nonce-Ubf+tTZZyyWK3eaDOg8+DQ=='';
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/"de4a48ee8790ee64cc1d3154ab11ba3a"
- W/"fdde9052870e9f115f5c25c05c7e9eef"
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:
- 275c1dd4-0334-4ea6-ab84-d2bca597ba0c
- 90b51951-7df9-4a03-94d7-28086dec2571
X-Runtime:
- '0.016299'
- '0.017544'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down

0 comments on commit 6abaff5

Please sign in to comment.