Skip to content

Commit

Permalink
Maybe fix test TZ issues
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy authored and halcy committed Nov 17, 2022
1 parent d19b718 commit c122f15
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 88 deletions.
50 changes: 25 additions & 25 deletions tests/cassettes/test_min_max_id_datetimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interactions:
uri: http://localhost:3000/api/v1/statuses
response:
body:
string: '{"id":"109361414886671615","created_at":"2022-11-17T22:06:01.334Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109361414886671615","url":"http://localhost:3000/@mastodonpy_test/109361414886671615","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
string: '{"id":"109361459769276068","created_at":"2022-11-17T22:17:26.188Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109361459769276068","url":"http://localhost:3000/@mastodonpy_test/109361459769276068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
Expand All @@ -30,7 +30,7 @@ interactions:
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-zdbQSwbx4iw16vSozkEaBw=='';
style-src ''self'' http://localhost:3000 ''nonce-3i41EcZdrZvb3525PmXeyw=='';
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 @@ -40,7 +40,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"df3c2de04c21d605b95386d3e8dfd158"
- W/"2e520c1fd5d370139af87e0798956824"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -58,13 +58,13 @@ interactions:
X-RateLimit-Limit:
- '300'
X-RateLimit-Remaining:
- '295'
- '294'
X-RateLimit-Reset:
- '2022-11-18T00:00:00.353667Z'
- '2022-11-18T00:00:00.209865Z'
X-Request-Id:
- e332cfa8-a612-45f2-804c-1c3277fd8b1c
- b685adcc-5bc1-47b7-aaee-9f6b9bd1203d
X-Runtime:
- '0.032788'
- '0.039480'
X-XSS-Protection:
- 1; mode=block
status:
Expand All @@ -84,10 +84,10 @@ interactions:
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/timelines/home?max_id=109361416175616000&min_id=109361413554176000
uri: http://localhost:3000/api/v1/timelines/home?max_id=109361461067776000&min_id=109361458446336000
response:
body:
string: '[{"id":"109361414886671615","created_at":"2022-11-17T22:06:01.334Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109361414886671615","url":"http://localhost:3000/@mastodonpy_test/109361414886671615","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
string: '[{"id":"109361459769276068","created_at":"2022-11-17T22:17:26.188Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109361459769276068","url":"http://localhost:3000/@mastodonpy_test/109361459769276068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}]'
Expand All @@ -97,7 +97,7 @@ interactions:
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-2KxFxB3gPWoSTIQQOcj+Yg=='';
style-src ''self'' http://localhost:3000 ''nonce-hHFjpXtdrPDaDwcOKfHaeg=='';
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 @@ -107,10 +107,10 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"587b4daea4aea69b51dc4985d33293bc"
- W/"0675f531431a1a5e7cbddf1ca1dadcbe"
Link:
- <http://localhost:3000/api/v1/timelines/home?max_id=109361414886671615>; rel="next",
<http://localhost:3000/api/v1/timelines/home?min_id=109361414886671615>; rel="prev"
- <http://localhost:3000/api/v1/timelines/home?max_id=109361459769276068>; rel="next",
<http://localhost:3000/api/v1/timelines/home?min_id=109361459769276068>; rel="prev"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -126,9 +126,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- cce9e9fa-1662-4415-aef7-2b42f239eec2
- e4e00d82-ef82-40dc-b030-79dc1acbaa6c
X-Runtime:
- '0.021393'
- '0.022892'
X-XSS-Protection:
- 1; mode=block
status:
Expand All @@ -148,7 +148,7 @@ interactions:
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/timelines/home?max_id=109361417486336000&min_id=109361416175616000
uri: http://localhost:3000/api/v1/timelines/home?max_id=109361462378496000&min_id=109361461067776000
response:
body:
string: '[]'
Expand All @@ -158,7 +158,7 @@ interactions:
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-IUhdTTDwet1ZMyN0WYNkbA=='';
style-src ''self'' http://localhost:3000 ''nonce-IAhUx8Tv3oajAaTgbJtGRA=='';
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 @@ -184,9 +184,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 436aa7ea-1e88-4c84-89dc-c9a0592210c0
- 1ecfe6fc-0306-42ed-b8d0-f8754df25598
X-Runtime:
- '0.008071'
- '0.008668'
X-XSS-Protection:
- 1; mode=block
status:
Expand All @@ -208,10 +208,10 @@ interactions:
User-Agent:
- tests/v311
method: DELETE
uri: http://localhost:3000/api/v1/statuses/109361414886671615
uri: http://localhost:3000/api/v1/statuses/109361459769276068
response:
body:
string: '{"id":"109361414886671615","created_at":"2022-11-17T22:06:01.334Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109361414886671615","url":"http://localhost:3000/@mastodonpy_test/109361414886671615","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
string: '{"id":"109361459769276068","created_at":"2022-11-17T22:17:26.188Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109361459769276068","url":"http://localhost:3000/@mastodonpy_test/109361459769276068","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-17","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
Expand All @@ -221,7 +221,7 @@ interactions:
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-qxtfoR4f93J/Fs22icd/Xg=='';
style-src ''self'' http://localhost:3000 ''nonce-Sfpe94MEQgrJN/hZFvxwhw=='';
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 @@ -231,7 +231,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ETag:
- W/"1a6201cb0015e79169fd5e55d46489a9"
- W/"c2d8f922e8eb602000135387e5911564"
Referrer-Policy:
- strict-origin-when-cross-origin
Transfer-Encoding:
Expand All @@ -247,9 +247,9 @@ interactions:
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 2cf29880-e9f0-4b0f-916b-295ba354a464
- e27e0bea-c422-4075-91c4-340c5122a7f5
X-Runtime:
- '0.022470'
- '0.032529'
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
Binary file modified tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl
Binary file not shown.

0 comments on commit c122f15

Please sign in to comment.