Fix up tests
This commit is contained in:
pare
09f9023c70
commit
d4e3feaece
S'han modificat 2 arxius amb 6 adicions i 1 eliminacions
|
@ -1555,6 +1555,11 @@ class Mastodon:
|
||||||
###
|
###
|
||||||
@api_version("2.7.0", "2.7.0", __DICT_VERSION_SCHEDULED_STATUS)
|
@api_version("2.7.0", "2.7.0", __DICT_VERSION_SCHEDULED_STATUS)
|
||||||
def update_scheduled_status(self, id, scheduled_at):
|
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()
|
scheduled_at = scheduled_at.isoformat()
|
||||||
id = self.__unpack_id(id)
|
id = self.__unpack_id(id)
|
||||||
self.__generate_params(locals(), ['id'])
|
self.__generate_params(locals(), ['id'])
|
||||||
|
|
|
@ -49,7 +49,7 @@ def test_app_verify_credentials(api):
|
||||||
assert app
|
assert app
|
||||||
assert app.name == 'Mastodon.py test suite'
|
assert app.name == 'Mastodon.py test suite'
|
||||||
|
|
||||||
@pytest.mark.vcr()
|
@pytest.mark.vcr(match_on=['path'])
|
||||||
def test_app_account_create():
|
def test_app_account_create():
|
||||||
# This leaves behind stuff on the test server, which is unfortunate, but eh.
|
# This leaves behind stuff on the test server, which is unfortunate, but eh.
|
||||||
suffix = str(time.time()).replace(".", "")[-5:]
|
suffix = str(time.time()).replace(".", "")[-5:]
|
||||||
|
|
Loading…
Referencia en una nova incidència