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:]