aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-27 20:59:14 +0100
committercodl <[email protected]>2017-11-27 20:59:14 +0100
commit9ee84a8dcb9b1a4eebec417b94070f8caade4ae3 (patch)
tree15ec3c82defcced0b5213a160512a792723eba1d /tests
parent8c9dcbe8710a425abee860affbd8951cf19609e1 (diff)
downloadmastodon.py-9ee84a8dcb9b1a4eebec417b94070f8caade4ae3.tar.gz
add test case for log_in with no log in method given
Diffstat (limited to 'tests')
-rw-r--r--tests/test_auth.py5
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
21def 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()
22def test_log_in_password(api_anonymous): 27def test_log_in_password(api_anonymous):
23 token = api_anonymous.log_in( 28 token = api_anonymous.log_in(
Powered by cgit v1.2.3 (git 2.41.0)