diff options
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): |