aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicah <[email protected]>2022-11-25 16:39:10 -0500
committerGitHub <[email protected]>2022-11-25 16:39:10 -0500
commit99514e50d1e1ef6330397c2cada203dfa3891b3a (patch)
treecbac11da3a71a24bbb739d9aa8fda65bc7968dd4 /tests/test_auth.py
parent5d7ca19c30dc6579bf29610fe815b822889978e6 (diff)
parent10b2a9984237aaae6a512d441001e635060d6af7 (diff)
downloadmastodon.py-99514e50d1e1ef6330397c2cada203dfa3891b3a.tar.gz
Merge pull request #1 from halcy/master
pull in upstream
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)