From d4e3feaeceba098c07123269ce2422858ca59098 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 28 Apr 2019 18:41:12 +0200 Subject: Fix up tests --- mastodon/Mastodon.py | 5 +++++ tests/test_create_app.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 7561cea..d4c458f 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1555,6 +1555,11 @@ class Mastodon: ### @api_version("2.7.0", "2.7.0", __DICT_VERSION_SCHEDULED_STATUS) def update_scheduled_status(self, id, scheduled_at): + """ + Update the scheduled time of a scheduled status. + + New time must be at least 5 minutes into the future. + """ scheduled_at = scheduled_at.isoformat() id = self.__unpack_id(id) self.__generate_params(locals(), ['id']) diff --git a/tests/test_create_app.py b/tests/test_create_app.py index f1153bc..b9de298 100644 --- a/tests/test_create_app.py +++ b/tests/test_create_app.py @@ -49,7 +49,7 @@ def test_app_verify_credentials(api): assert app assert app.name == 'Mastodon.py test suite' -@pytest.mark.vcr() +@pytest.mark.vcr(match_on=['path']) def test_app_account_create(): # This leaves behind stuff on the test server, which is unfortunate, but eh. suffix = str(time.time()).replace(".", "")[-5:] -- cgit v1.2.3