Fix up tests

This commit is contained in:
Lorenz Diener 2019-04-28 18:41:12 +02:00
pare 09f9023c70
commit d4e3feaece
S'han modificat 2 arxius amb 6 adicions i 1 eliminacions

Veure arxiu

@ -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'])

Veure arxiu

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