aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-07 23:11:30 +0200
commit3277ca777821e76955fb26d80788939a311db9db (patch)
treebef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/test_auth.py
parent33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff)
downloadmastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r--tests/test_auth.py8
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()
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', 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):
41def test_log_in_password_to_file(api_anonymous, tmpdir): 41def 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
Powered by cgit v1.2.3 (git 2.41.0)