Exemplo n.º 1
0
 def test_render_rst_invalid(self, metadata, invalid_file_path, url,
                             assets_url, export_url):
     renderer = RstRenderer(metadata, invalid_file_path, url, assets_url,
                            export_url)
     with pytest.raises(UnicodeDecodeError):
         renderer.render()
 def test_render_rst_invalid(self, metadata, invalid_file_path, url, assets_url, export_url):
     renderer = RstRenderer(metadata, invalid_file_path, url, assets_url, export_url)
     with pytest.raises(UnicodeDecodeError):
         renderer.render()
Exemplo n.º 3
0
def renderer(metadata, test_file_path, url, assets_url, export_url):
    return RstRenderer(metadata, test_file_path, url, assets_url, export_url)
Exemplo n.º 4
0
 def test_render_rst_invalid(self, url, download_url, invalid_file_path, assets_url, extension):
     renderer = RstRenderer(url, download_url, invalid_file_path, assets_url, extension)
     with pytest.raises(UnicodeDecodeError):
         renderer.render()