def METHOD_NAME(simple_schema, validate_schema, expected_exception):
    # When there is an error in the API schema that leads to inability to generate any tests
    del simple_schema["paths"]
    # Then it is an explicit exception either during schema loading or processing API operations
    with pytest.raises(expected_exception):
        schema = schemathesis.from_dict(simple_schema, validate_schema=validate_schema)
        list(schema.get_all_operations())