def test_combine_with_error(self): result_list = [ Result.Ok("a", True), Result.Ok("b", True), Result.Fail("c"), ] result = Result.combine(result_list) assert not result.success
def test_init_with_valid_values(self): result = Result.Ok(value="ok", check_success=True) result2 = Result.Ok(value="ok", check_success=False) result3 = Result.Fail(Exception())