From 2825fa9963cd30815bdaa3307eb630695c68aae0 Mon Sep 17 00:00:00 2001 From: halcy Date: Fri, 25 Nov 2022 00:01:07 +0200 Subject: Add admin trends test --- tests/test_auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_auth.py') 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): def test_revoke(api_anonymous): token = api_anonymous.log_in( username='mastodonpy_test_2@localhost:3000', - password='5fc638e0e53eafd9c4145b6bb852667d' + password='5fc638e0e53eafd9c4145b6bb852667d', ) api_anonymous.revoke_access_token() @@ -45,9 +45,9 @@ def test_revoke(api_anonymous): print(e) pass - api_revoked_token = Mastodon(access_token = token) + api_revoked_token = Mastodon(access_token = token, api_base_url='http://localhost:3000') try: - api_anonymous.toot("illegal access detected") + api_revoked_token.toot("illegal access detected") assert False except Exception as e: print(e) -- cgit v1.2.3