diff options
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r-- | tests/test_auth.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py index fbf8974..c3acb66 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py | |||
@@ -26,8 +26,8 @@ def test_log_in_none(api_anonymous): | |||
26 | @pytest.mark.vcr() | 26 | @pytest.mark.vcr() |
27 | def test_log_in_password(api_anonymous): | 27 | def test_log_in_password(api_anonymous): |
28 | token = api_anonymous.log_in( | 28 | token = api_anonymous.log_in( |
29 | username='admin@localhost', | 29 | username='mastodonpy_test_2@localhost:3000', |
30 | password='mastodonadmin') | 30 | password='5fc638e0e53eafd9c4145b6bb852667d') |
31 | assert token | 31 | assert token |
32 | 32 | ||
33 | @pytest.mark.vcr() | 33 | @pytest.mark.vcr() |
@@ -41,8 +41,8 @@ def test_log_in_password_incorrect(api_anonymous): | |||
41 | def test_log_in_password_to_file(api_anonymous, tmpdir): | 41 | def test_log_in_password_to_file(api_anonymous, tmpdir): |
42 | filepath = tmpdir.join('token') | 42 | filepath = tmpdir.join('token') |
43 | api_anonymous.log_in( | 43 | api_anonymous.log_in( |
44 | username='admin@localhost', | 44 | username='mastodonpy_test_2@localhost:3000', |
45 | password='mastodonadmin', | 45 | password='5fc638e0e53eafd9c4145b6bb852667d', |
46 | to_file=str(filepath)) | 46 | to_file=str(filepath)) |
47 | token = filepath.read_text('UTF-8').rstrip().split("\n")[0] | 47 | token = filepath.read_text('UTF-8').rstrip().split("\n")[0] |
48 | assert token | 48 | assert token |