Skip to content

Commit

Permalink
Pre-release full testsuite updated run
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy committed Oct 12, 2019
1 parent 45908b6 commit 0b3b2c3
Show file tree
Hide file tree
Showing 112 changed files with 4,090 additions and 4,098 deletions.
2 changes: 1 addition & 1 deletion mastodon/Mastodon.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class Mastodon:
__VALID_SCOPES = ['read', 'write', 'follow', 'push', 'admin:read', 'admin:write'] + \
__SCOPE_SETS['read'] + __SCOPE_SETS['write'] + __SCOPE_SETS['admin:read'] + __SCOPE_SETS['admin:write']

__SUPPORTED_MASTODON_VERSION = "2.9.2"
__SUPPORTED_MASTODON_VERSION = "3.0.1"

# Dict versions
__DICT_VERSION_APPLICATION = "2.7.2"
Expand Down
6 changes: 3 additions & 3 deletions tests/cassettes/test_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interactions:
method: GET
uri: http://localhost:3000/api/v1/accounts/1
response:
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":27,"last_status_at":"2019-10-11T21:45:48.648Z","emojis":[],"fields":[]}'}
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:57:00.304Z","emojis":[],"fields":[]}'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Expand All @@ -21,8 +21,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [efcd900c-c4d1-4768-ad05-c6bc47ec0647]
X-Runtime: ['0.018850']
X-Request-Id: [b4e66be9-0c70-4277-9342-c6df07ba4777]
X-Runtime: ['0.023318']
X-XSS-Protection: [1; mode=block]
content-length: ['568']
status: {code: 200, message: OK}
Expand Down
8 changes: 4 additions & 4 deletions tests/cassettes/test_account_block_unblock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [99fa9df4-31f6-4906-a6a2-6aea9050968d]
X-Runtime: ['0.085019']
X-Request-Id: [3a2a480a-f919-4c65-93bb-5cdbf29338fd]
X-Runtime: ['0.094037']
X-XSS-Protection: [1; mode=block]
content-length: ['210']
status: {code: 200, message: OK}
Expand All @@ -50,8 +50,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [a0effc31-773c-4c28-bfae-d2ec70487f07]
X-Runtime: ['0.072323']
X-Request-Id: [c14d7149-dc4c-411d-9b0a-386aff8af84d]
X-Runtime: ['0.079443']
X-XSS-Protection: [1; mode=block]
content-length: ['211']
status: {code: 200, message: OK}
Expand Down
8 changes: 4 additions & 4 deletions tests/cassettes/test_account_follow_unfollow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [31743a1d-a1e9-47ca-aefd-5b022c0de4c9]
X-Runtime: ['0.075420']
X-Request-Id: [70d9bf2b-19c1-4dcd-926b-69e51ddb1a02]
X-Runtime: ['0.105825']
X-XSS-Protection: [1; mode=block]
content-length: ['209']
status: {code: 200, message: OK}
Expand All @@ -51,8 +51,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [b24c0dc7-bcc7-4135-97f1-b4d14ff53ea9]
X-Runtime: ['0.108028']
X-Request-Id: [204193c2-0075-4cc5-b587-381008bec7d1]
X-Runtime: ['0.119283']
X-XSS-Protection: [1; mode=block]
content-length: ['211']
status: {code: 200, message: OK}
Expand Down
9 changes: 5 additions & 4 deletions tests/cassettes/test_account_followers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ interactions:
method: GET
uri: http://localhost:3000/api/v1/accounts/1/followers
response:
body: {string: '[]'}
body: {string: '[{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":1,"statuses_count":2,"last_status_at":"2019-10-12T20:55:05.311Z","emojis":[],"fields":[]}]'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Link: ['<http://localhost:3000/api/v1/accounts/1/followers?since_id=95>; rel="prev"']
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [508f378e-8f6c-4737-9979-d579e31c6cc6]
X-Runtime: ['0.034634']
X-Request-Id: [4ac9ee5a-9181-45cb-8dc8-8310ae562d56]
X-Runtime: ['0.038805']
X-XSS-Protection: [1; mode=block]
content-length: ['2']
content-length: ['614']
status: {code: 200, message: OK}
version: 1
4 changes: 2 additions & 2 deletions tests/cassettes/test_account_following.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [0faadb2c-b652-4920-afbd-a517bf035491]
X-Runtime: ['0.025544']
X-Request-Id: [4bd3bf06-3bf4-4845-b8aa-844c0f8a4322]
X-Runtime: ['0.035077']
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
Expand Down
8 changes: 4 additions & 4 deletions tests/cassettes/test_account_mute_unmute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [643c175d-fca8-4e07-be78-7bd95ac8a5e1]
X-Runtime: ['0.047060']
X-Request-Id: [13628e48-00e4-4328-84ad-5447887a925e]
X-Runtime: ['0.045740']
X-XSS-Protection: [1; mode=block]
content-length: ['209']
status: {code: 200, message: OK}
Expand All @@ -51,8 +51,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [41df321e-cc42-440a-b68a-ee5dc529a051]
X-Runtime: ['0.038552']
X-Request-Id: [911ea529-a90e-4a3a-9451-cd0a85022f6e]
X-Runtime: ['0.035337']
X-XSS-Protection: [1; mode=block]
content-length: ['211']
status: {code: 200, message: OK}
Expand Down
36 changes: 18 additions & 18 deletions tests/cassettes/test_account_pin_unpin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interactions:
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":27,"last_status_at":"2019-10-11T21:45:48.648Z","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'}
body: {string: '{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":2,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:57:00.304Z","source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[]}'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Expand All @@ -21,8 +21,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [950fad2e-720f-4f0f-aa83-98bcd6aeb45d]
X-Runtime: ['0.030823']
X-Request-Id: [37b30221-c0d5-4cfb-9768-b9e6554e6595]
X-Runtime: ['0.033095']
X-XSS-Protection: [1; mode=block]
content-length: ['680']
status: {code: 200, message: OK}
Expand Down Expand Up @@ -50,8 +50,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [9bca315e-f074-4fdc-8f17-cd31dfc0b42e]
X-Runtime: ['0.080563']
X-Request-Id: [9239f956-e331-41cd-bdea-3808c5860010]
X-Runtime: ['0.083858']
X-XSS-Protection: [1; mode=block]
content-length: ['209']
status: {code: 200, message: OK}
Expand All @@ -78,8 +78,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [548fa7b7-a6ec-43bd-b225-877463c38cb6]
X-Runtime: ['0.095486']
X-Request-Id: [ff838dc7-5abf-43ef-9b67-14c96830ebda]
X-Runtime: ['0.080912']
X-XSS-Protection: [1; mode=block]
content-length: ['209']
status: {code: 200, message: OK}
Expand All @@ -106,8 +106,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [a88bda5c-63bf-4bcf-a17c-668b68dd537b]
X-Runtime: ['0.063345']
X-Request-Id: [495577ad-4106-4ffd-af43-ee8e7b310134]
X-Runtime: ['0.060430']
X-XSS-Protection: [1; mode=block]
content-length: ['208']
status: {code: 200, message: OK}
Expand All @@ -122,7 +122,7 @@ interactions:
method: GET
uri: http://localhost:3000/api/v1/endorsements
response:
body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":27,"last_status_at":"2019-10-11T21:45:48.648Z","emojis":[],"fields":[]}]'}
body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T12:42:50.096Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":3,"following_count":1,"statuses_count":30,"last_status_at":"2019-10-11T21:57:00.304Z","emojis":[],"fields":[]}]'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Expand All @@ -134,8 +134,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [84c1395a-c349-4b3c-b094-fe64f7f2240f]
X-Runtime: ['0.052792']
X-Request-Id: [3120d909-0778-4931-82e8-1bcce468030a]
X-Runtime: ['0.026059']
X-XSS-Protection: [1; mode=block]
content-length: ['570']
status: {code: 200, message: OK}
Expand All @@ -162,8 +162,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [fa585732-6193-4cf1-a64b-dbfeacae4c29]
X-Runtime: ['0.034455']
X-Request-Id: [2626136d-3ca6-4e15-b72a-ce74d48d258b]
X-Runtime: ['0.042342']
X-XSS-Protection: [1; mode=block]
content-length: ['209']
status: {code: 200, message: OK}
Expand All @@ -189,8 +189,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [50a6c4aa-d887-4b42-9cc6-9e0d07ac6e64]
X-Runtime: ['0.031412']
X-Request-Id: [38056c3e-6130-49cb-af50-d24d6843798f]
X-Runtime: ['0.018241']
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
Expand All @@ -217,8 +217,8 @@ interactions:
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [8ea51729-d6f1-4dbd-a9ad-3003d92c8df9]
X-Runtime: ['0.078636']
X-Request-Id: [6d084205-6583-4564-b7ea-750b0ca04417]
X-Runtime: ['0.059548']
X-XSS-Protection: [1; mode=block]
content-length: ['211']
status: {code: 200, message: OK}
Expand Down

0 comments on commit 0b3b2c3

Please sign in to comment.