add test case for log_in with no log in method given

This commit is contained in:
codl 2017-11-27 20:59:14 +01:00
pare 8c9dcbe871
commit 9ee84a8dcb
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 6CD7C8891ED1233A

Veure arxiu

@ -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(