aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-06-22 15:28:27 +0200
committerLorenz Diener <[email protected]>2019-06-22 15:28:27 +0200
commit052b7f7cd319bd39f5c9db1b0322e9e4445a123e (patch)
treea4f02a2f738a477f2cde36e209bc29ab4df78ebc /tests/test_auth.py
parent1a120f03939d36bc14bda0931819db0ab45908af (diff)
downloadmastodon.py-052b7f7cd319bd39f5c9db1b0322e9e4445a123e.tar.gz
Test fixups pre-2.9.1
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r--tests/test_auth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index a8ae52c..b4a004e 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -26,7 +26,7 @@ def test_log_in_none(api_anonymous):
26@pytest.mark.vcr() 26@pytest.mark.vcr()
27def test_log_in_password(api_anonymous): 27def test_log_in_password(api_anonymous):
28 token = api_anonymous.log_in( 28 token = api_anonymous.log_in(
29 username='admin@localhost:3000', 29 username='admin@localhost',
30 password='mastodonadmin') 30 password='mastodonadmin')
31 assert token 31 assert token
32 32
@@ -35,7 +35,7 @@ def test_log_in_password(api_anonymous):
35def test_log_in_password_incorrect(api_anonymous): 35def test_log_in_password_incorrect(api_anonymous):
36 with pytest.raises(MastodonIllegalArgumentError): 36 with pytest.raises(MastodonIllegalArgumentError):
37 api_anonymous.log_in( 37 api_anonymous.log_in(
38 username='admin@localhost:3000', 38 username='admin@localhost',
39 password='hunter2') 39 password='hunter2')
40 40
41 41
@@ -43,7 +43,7 @@ def test_log_in_password_incorrect(api_anonymous):
43def test_log_in_password_to_file(api_anonymous, tmpdir): 43def test_log_in_password_to_file(api_anonymous, tmpdir):
44 filepath = tmpdir.join('token') 44 filepath = tmpdir.join('token')
45 api_anonymous.log_in( 45 api_anonymous.log_in(
46 username='admin@localhost:3000', 46 username='admin@localhost',
47 password='mastodonadmin', 47 password='mastodonadmin',
48 to_file=str(filepath)) 48 to_file=str(filepath))
49 token = filepath.read_text('UTF-8').rstrip() 49 token = filepath.read_text('UTF-8').rstrip()
Powered by cgit v1.2.3 (git 2.41.0)