aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-04-28 18:41:12 +0200
committerLorenz Diener <[email protected]>2019-04-28 18:41:12 +0200
commitd4e3feaeceba098c07123269ce2422858ca59098 (patch)
tree00fb7fc798da0d8471185de708f46acd474c90ab
parent09f9023c7070c1610d0287953e9365ee00c5f374 (diff)
downloadmastodon.py-d4e3feaeceba098c07123269ce2422858ca59098.tar.gz
Fix up tests
-rw-r--r--mastodon/Mastodon.py5
-rw-r--r--tests/test_create_app.py2
2 files changed, 6 insertions, 1 deletions
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:
1555 ### 1555 ###
1556 @api_version("2.7.0", "2.7.0", __DICT_VERSION_SCHEDULED_STATUS) 1556 @api_version("2.7.0", "2.7.0", __DICT_VERSION_SCHEDULED_STATUS)
1557 def update_scheduled_status(self, id, scheduled_at): 1557 def update_scheduled_status(self, id, scheduled_at):
1558 """
1559 Update the scheduled time of a scheduled status.
1560
1561 New time must be at least 5 minutes into the future.
1562 """
1558 scheduled_at = scheduled_at.isoformat() 1563 scheduled_at = scheduled_at.isoformat()
1559 id = self.__unpack_id(id) 1564 id = self.__unpack_id(id)
1560 self.__generate_params(locals(), ['id']) 1565 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):
49 assert app 49 assert app
50 assert app.name == 'Mastodon.py test suite' 50 assert app.name == 'Mastodon.py test suite'
51 51
52@pytest.mark.vcr() 52@pytest.mark.vcr(match_on=['path'])
53def test_app_account_create(): 53def test_app_account_create():
54 # This leaves behind stuff on the test server, which is unfortunate, but eh. 54 # This leaves behind stuff on the test server, which is unfortunate, but eh.
55 suffix = str(time.time()).replace(".", "")[-5:] 55 suffix = str(time.time()).replace(".", "")[-5:]
Powered by cgit v1.2.3 (git 2.41.0)