aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_status.py')
-rw-r--r--tests/test_status.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_status.py b/tests/test_status.py
index 4f6295f..ef27f9c 100644
--- a/tests/test_status.py
+++ b/tests/test_status.py
@@ -1,6 +1,7 @@
1import pytest 1import pytest
2from mastodon.Mastodon import MastodonAPIError, MastodonNotFoundError 2from mastodon.Mastodon import MastodonAPIError, MastodonNotFoundError
3import datetime 3import datetime
4import pytz
4 5
5@pytest.mark.vcr() 6@pytest.mark.vcr()
6def test_status(status, api): 7def test_status(status, api):
@@ -130,7 +131,7 @@ def test_status_pin_unpin(status, api):
130 131
131@pytest.mark.vcr(match_on=['path']) 132@pytest.mark.vcr(match_on=['path'])
132def test_scheduled_status(api): 133def test_scheduled_status(api):
133 base_time = datetime.datetime(4000, 1, 1, 12, 13, 14) 134 base_time = datetime.datetime(4000, 1, 1, 12, 13, 14, 0, pytz.timezone("Etc/GMT+2"))
134 the_future = base_time + datetime.timedelta(minutes=20) 135 the_future = base_time + datetime.timedelta(minutes=20)
135 scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future) 136 scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future)
136 assert scheduled_toot 137 assert scheduled_toot
Powered by cgit v1.2.3 (git 2.41.0)