diff options
author | codl <[email protected]> | 2017-11-27 20:59:14 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 20:59:14 +0100 |
commit | 9ee84a8dcb9b1a4eebec417b94070f8caade4ae3 (patch) | |
tree | 15ec3c82defcced0b5213a160512a792723eba1d | |
parent | 8c9dcbe8710a425abee860affbd8951cf19609e1 (diff) | |
download | mastodon.py-9ee84a8dcb9b1a4eebec417b94070f8caade4ae3.tar.gz |
add test case for log_in with no log in method given
-rw-r--r-- | tests/test_auth.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): | |||
18 | assert set(query['scope'][0].split()) == set(('read', 'write', 'follow')) | 18 | assert set(query['scope'][0].split()) == set(('read', 'write', 'follow')) |
19 | 19 | ||
20 | 20 | ||
21 | def test_log_in_none(api_anonymous): | ||
22 | with pytest.raises(MastodonIllegalArgumentError): | ||
23 | api_anonymous.log_in() | ||
24 | |||
25 | |||
21 | @pytest.mark.vcr() | 26 | @pytest.mark.vcr() |
22 | def test_log_in_password(api_anonymous): | 27 | def test_log_in_password(api_anonymous): |
23 | token = api_anonymous.log_in( | 28 | token = api_anonymous.log_in( |