diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-30 22:43:50 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-30 22:43:50 +0200 |
commit | 99432f538e0243a12ee575ad6a9ff06c06792dc9 (patch) | |
tree | 06b61042d1a76694422a517bada8aebf6103927c /tests | |
parent | 262d150c05b328324ae5becc5da0d5b55dd74b89 (diff) | |
parent | 2d7f495b0f702ca156697e7c7f0dd2e40a68e4a6 (diff) | |
download | mastodon.py-99432f538e0243a12ee575ad6a9ff06c06792dc9.tar.gz |
Merge branch 'eumiro-modern-datetime'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_status.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_status.py b/tests/test_status.py index e747571..1fa7fd5 100644 --- a/tests/test_status.py +++ b/tests/test_status.py | |||
@@ -1,7 +1,7 @@ | |||
1 | import pytest | 1 | import pytest |
2 | from mastodon.Mastodon import MastodonAPIError, MastodonNotFoundError | 2 | from mastodon.Mastodon import MastodonAPIError, MastodonNotFoundError |
3 | import datetime | 3 | import datetime |
4 | import pytz | 4 | import zoneinfo |
5 | import vcr | 5 | import vcr |
6 | import time | 6 | import time |
7 | import pickle | 7 | import pickle |
@@ -154,7 +154,7 @@ def test_status_pin_unpin(status, api): | |||
154 | 154 | ||
155 | @pytest.mark.vcr(match_on=['path']) | 155 | @pytest.mark.vcr(match_on=['path']) |
156 | def test_scheduled_status(api): | 156 | def test_scheduled_status(api): |
157 | base_time = datetime.datetime(4000, 1, 1, 12, 13, 14, 0, pytz.timezone("Etc/GMT+2")) | 157 | base_time = datetime.datetime(4000, 1, 1, 12, 13, 14, 0, zoneinfo.ZoneInfo("Etc/GMT+2")) |
158 | the_future = base_time + datetime.timedelta(minutes=20) | 158 | the_future = base_time + datetime.timedelta(minutes=20) |
159 | scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future) | 159 | scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future) |
160 | assert scheduled_toot | 160 | assert scheduled_toot |