diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-28 00:55:41 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-28 00:55:41 +0200 |
commit | dbceccb210d401887002abf0ea3c746260423f1f (patch) | |
tree | ecb48bbd819441c4838312556becf23e4fdea3b2 /tests/test_constructor.py | |
parent | ae9f7640878e3f402b4f8784cecadf5aab0d5d7c (diff) | |
download | mastodon.py-dbceccb210d401887002abf0ea3c746260423f1f.tar.gz |
Add v2 admin accounts API
Diffstat (limited to 'tests/test_constructor.py')
-rw-r--r-- | tests/test_constructor.py | 11 |
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 | ||
19 | def test_constructor_illegal_ratelimit(): | 19 | def 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') | 23 | def 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 | ||
25 | def test_constructor_illegal_versioncheckmode(): | 30 | def test_constructor_illegal_versioncheckmode(): |
26 | with pytest.raises(MastodonIllegalArgumentError): | 31 | with pytest.raises(MastodonIllegalArgumentError): |