From ee4549acd0a6fa75bfea1a3e0498ef2029af5c9f Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 28 Apr 2019 19:46:20 +0200 Subject: Fix tests, again --- tests/test_status.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_status.py') 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): @pytest.mark.vcr() def test_scheduled_status(api): - the_future = datetime.datetime.now() + datetime.timedelta(minutes=20) + base_time = datetime.datetime(4000, 1, 1, 12, 13, 14) + the_future = base_time + datetime.timedelta(minutes=20) scheduled_toot = api.status_post("please ensure adequate headroom", scheduled_at=the_future) assert scheduled_toot - the_immediate_future = datetime.datetime.now() + datetime.timedelta(minutes=10) + the_immediate_future = base_time + datetime.timedelta(minutes=10) scheduled_toot_2 = api.scheduled_status_update(scheduled_toot, the_immediate_future) assert scheduled_toot_2 assert scheduled_toot_2.id == scheduled_toot.id -- cgit v1.2.3