aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 a14b4e7..8a2337b 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -34,7 +34,7 @@ def test_log_in_password(api_anonymous):
34def test_revoke(api_anonymous): 34def test_revoke(api_anonymous):
35 token = api_anonymous.log_in( 35 token = api_anonymous.log_in(
36 username='mastodonpy_test_2@localhost:3000', 36 username='mastodonpy_test_2@localhost:3000',
37 password='5fc638e0e53eafd9c4145b6bb852667d' 37 password='5fc638e0e53eafd9c4145b6bb852667d',
38 ) 38 )
39 api_anonymous.revoke_access_token() 39 api_anonymous.revoke_access_token()
40 40
@@ -45,9 +45,9 @@ def test_revoke(api_anonymous):
45 print(e) 45 print(e)
46 pass 46 pass
47 47
48 api_revoked_token = Mastodon(access_token = token) 48 api_revoked_token = Mastodon(access_token = token, api_base_url='http://localhost:3000')
49 try: 49 try:
50 api_anonymous.toot("illegal access detected") 50 api_revoked_token.toot("illegal access detected")
51 assert False 51 assert False
52 except Exception as e: 52 except Exception as e:
53 print(e) 53 print(e)
Powered by cgit v1.2.3 (git 2.41.0)