From dbceccb210d401887002abf0ea3c746260423f1f Mon Sep 17 00:00:00 2001 From: halcy Date: Mon, 28 Nov 2022 00:55:41 +0200 Subject: Add v2 admin accounts API --- tests/test_constructor.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tests/test_constructor.py') 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): def test_constructor_illegal_ratelimit(): with pytest.raises(MastodonIllegalArgumentError): - api = Mastodon( - 'foo', client_secret='bar', - ratelimit_method='baz') + api = Mastodon('foo', client_secret='bar', ratelimit_method='baz', api_base_url="whatever") + +def test_constructor_no_url(): + with pytest.raises(MastodonIllegalArgumentError): + api = Mastodon('foo', client_secret='bar') + + with pytest.raises(MastodonIllegalArgumentError): + api = Mastodon(access_token='baz') def test_constructor_illegal_versioncheckmode(): with pytest.raises(MastodonIllegalArgumentError): -- cgit v1.2.3