aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-28 00:55:41 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-28 00:55:41 +0200
commitdbceccb210d401887002abf0ea3c746260423f1f (patch)
treeecb48bbd819441c4838312556becf23e4fdea3b2 /tests/test_constructor.py
parentae9f7640878e3f402b4f8784cecadf5aab0d5d7c (diff)
downloadmastodon.py-dbceccb210d401887002abf0ea3c746260423f1f.tar.gz
Add v2 admin accounts API
Diffstat (limited to 'tests/test_constructor.py')
-rw-r--r--tests/test_constructor.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_constructor.py b/tests/test_constructor.py
index ed38b9c..2531e19 100644
--- a/tests/test_constructor.py
+++ b/tests/test_constructor.py
@@ -18,9 +18,14 @@ def test_constructor_from_filenames(tmpdir):
18 18
19def test_constructor_illegal_ratelimit(): 19def test_constructor_illegal_ratelimit():
20 with pytest.raises(MastodonIllegalArgumentError): 20 with pytest.raises(MastodonIllegalArgumentError):
21 api = Mastodon( 21 api = Mastodon('foo', client_secret='bar', ratelimit_method='baz', api_base_url="whatever")
22 'foo', client_secret='bar', 22
23 ratelimit_method='baz') 23def test_constructor_no_url():
24 with pytest.raises(MastodonIllegalArgumentError):
25 api = Mastodon('foo', client_secret='bar')
26
27 with pytest.raises(MastodonIllegalArgumentError):
28 api = Mastodon(access_token='baz')
24 29
25def test_constructor_illegal_versioncheckmode(): 30def test_constructor_illegal_versioncheckmode():
26 with pytest.raises(MastodonIllegalArgumentError): 31 with pytest.raises(MastodonIllegalArgumentError):
Powered by cgit v1.2.3 (git 2.41.0)