def test_should_fail_i(mk_cli_anon: Misskey): with pytest.raises(MisskeyAPIException) as e: mk_cli_anon.i() assert type(e.value.code) == str assert type(e.value.message) == str assert type(e.value.id) == uuid.UUID or type(e.value.id) == str
def mk_user_id(mk_cli_user: Misskey) -> str: return mk_cli_user.i()['id']
def mk_admin_id(mk_cli_admin: Misskey) -> str: return mk_cli_admin.i()['id']
def test_should_success_i(mk_cli_user: Misskey): res = mk_cli_user.i() assert type(res) == dict