From 9ee84a8dcb9b1a4eebec417b94070f8caade4ae3 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 20:59:14 +0100 Subject: add test case for log_in with no log in method given --- tests/test_auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_auth.py b/tests/test_auth.py index 0ad4b08..2b27d5b 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -18,6 +18,11 @@ def test_auth_request_url(api): assert set(query['scope'][0].split()) == set(('read', 'write', 'follow')) +def test_log_in_none(api_anonymous): + with pytest.raises(MastodonIllegalArgumentError): + api_anonymous.log_in() + + @pytest.mark.vcr() def test_log_in_password(api_anonymous): token = api_anonymous.log_in( -- cgit v1.2.3