From d992b9bb8c687c4ae6bff545edd303c6b58d4124 Mon Sep 17 00:00:00 2001 From: halcy Date: Sat, 19 Nov 2022 01:29:14 +0200 Subject: Add account lookup API --- tests/test_account.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/test_account.py') diff --git a/tests/test_account.py b/tests/test_account.py index 700433f..6f3b9a5 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -280,3 +280,14 @@ def test_follow_with_notify_reblog(api, api2, api3): api.account_unfollow(api2_id) api3.status_delete(status1) api2.status_delete(status2) + +@pytest.mark.vcr() +def test_account_lookup(api, api3): + id = api.me().id + try: + api.account_lookup("kljadklajsdkljlkjlkjlkjasdasd") + assert False + except: + pass + assert(api.account_lookup("mastodonpy_test").id == id) + assert(api.account_lookup("mastodonpy_test@localhost:3000").id == id) \ No newline at end of file -- cgit v1.2.3