diff options
Diffstat (limited to 'tests/test_status.py')
-rw-r--r-- | tests/test_status.py | 5 |
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() |
127 | def test_scheduled_status(api): | 127 | def 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 |