aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-04-28 19:46:20 +0200
committerLorenz Diener <[email protected]>2019-04-28 19:46:20 +0200
commitee4549acd0a6fa75bfea1a3e0498ef2029af5c9f (patch)
tree1784de5f257dd42fa7e40502e3478a43db05661e /tests/test_status.py
parent1cbf923494ef5e3457460534f386fd2bf5b648fc (diff)
downloadmastodon.py-ee4549acd0a6fa75bfea1a3e0498ef2029af5c9f.tar.gz
Fix tests, again
Diffstat (limited to 'tests/test_status.py')
-rw-r--r--tests/test_status.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_status.py b/tests/test_status.py
index c34db0d..c6d62ae 100644
--- a/tests/test_status.py
+++ b/tests/test_status.py
@@ -125,11 +125,12 @@ def test_status_pin_unpin(status, api):
125 125
126@pytest.mark.vcr() 126@pytest.mark.vcr()
127def test_scheduled_status(api): 127def test_scheduled_status(api):
128 the_future = datetime.datetime.now() + datetime.timedelta(minutes=20) 128 base_time = datetime.datetime(4000, 1, 1, 12, 13, 14)
129 the_future = base_time + datetime.timedelta(minutes=20)
129 scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future) 130 scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future)
130 assert scheduled_toot 131 assert scheduled_toot
131 132
132 the_immediate_future = datetime.datetime.now() + datetime.timedelta(minutes=10) 133 the_immediate_future = base_time + datetime.timedelta(minutes=10)
133 scheduled_toot_2 = api.scheduled_status_update(scheduled_toot, the_immediate_future) 134 scheduled_toot_2 = api.scheduled_status_update(scheduled_toot, the_immediate_future)
134 assert scheduled_toot_2 135 assert scheduled_toot_2
135 assert scheduled_toot_2.id == scheduled_toot.id 136 assert scheduled_toot_2.id == scheduled_toot.id
Powered by cgit v1.2.3 (git 2.41.0)