def METHOD_NAME(self) -> None:
    cr = bahc.CodeRunner("This is a syntax error", "path", [])
    assert cr.failed is True
    assert cr.error is not None
    assert cr.error_detail is not None
    assert "Invalid syntax in" in cr.error