def METHOD_NAME(self):
    """
    GIVEN:
        - Document needs to be converted to PDF
    WHEN:
        - Gotenberg server returns an error
    THEN:
        - Parse error is raised
    """
    # Pretend convert to PDF response
    self.httpx_mock.add_response(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
    file = Path(os.path.join(self.parser.tempdir, "input.odt"))
    file.touch()
    with self.assertRaises(ParseError):
        self.parser.convert_to_pdf(file, None)