diff options
author | micah <[email protected]> | 2022-11-25 21:45:52 +0000 |
---|---|---|
committer | micah <[email protected]> | 2022-11-25 21:45:52 +0000 |
commit | dd23f8b7c5e46989b2a73b21816c59bbbd34ef35 (patch) | |
tree | dd9c08cce97aec58daacd8f7b852d2e64886f951 /tests/test_auth.py | |
parent | 2c7b58568db735534912b2bc0990294e9d4a9c19 (diff) | |
parent | 99514e50d1e1ef6330397c2cada203dfa3891b3a (diff) | |
download | mastodon.py-dd23f8b7c5e46989b2a73b21816c59bbbd34ef35.tar.gz |
Merge remote-tracking branch 'origin/master' into catgoat/domain_blocks
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r-- | tests/test_auth.py | 6 |
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): | |||
34 | def test_revoke(api_anonymous): | 34 | def 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) |