Example #1
0
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
Example #2
0
def mk_user_id(mk_cli_user: Misskey) -> str:
    return mk_cli_user.i()['id']
Example #3
0
def mk_admin_id(mk_cli_admin: Misskey) -> str:
    return mk_cli_admin.i()['id']
Example #4
0
def test_should_success_i(mk_cli_user: Misskey):
    res = mk_cli_user.i()
    assert type(res) == dict