Esempio n. 1
0
    def test_export_docx_to_resized_images_rotate_image(self):
        docx_file_path = utils.get_fixture('rotate_image.docx')

        html_file_content = utils.get_fixture('rotate_image.html',
                                              as_binary=True)

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
Esempio n. 2
0
    def test_export_docx_to_resized_images_images_with_same_id(self):
        docx_file_path = utils.get_fixture('cloned_images.docx')

        html_file_content = utils.get_fixture('cloned_images.html',
                                              as_binary=True)

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
Esempio n. 3
0
    def test_export_docx_to_resized_images_images_width_and_height_as_pt(self):
        docx_file_path = utils.get_fixture('image_with_pt_dimensions.docx')

        html_file_content = utils.get_fixture('image_with_pt_dimensions.html',
                                              as_binary=True)

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
Esempio n. 4
0
    def test_export_docx_to_resized_images(self):
        docx_file_path = utils.get_fixture(
            'png_basic_resize_linked_photo.docx')
        html_file_content = utils.get_fixture(
            'png_basic_resize_linked_photo.html', as_binary=True)

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
    def test_export_docx_to_resized_images(self):
        docx_file_path = utils.get_fixture('png_basic_resize_linked_photo.docx')
        html_file_content = utils.get_fixture(
            'png_basic_resize_linked_photo.html',
            as_binary=True
        )

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
    def test_export_docx_to_resized_images_rotate_image(self):
        docx_file_path = utils.get_fixture('rotate_image.docx')

        html_file_content = utils.get_fixture(
            'rotate_image.html',
            as_binary=True
        )

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
    def test_export_docx_to_resized_images_images_width_and_height_as_pt(self):
        docx_file_path = utils.get_fixture('image_with_pt_dimensions.docx')

        html_file_content = utils.get_fixture(
            'image_with_pt_dimensions.html',
            as_binary=True
        )

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)
    def test_export_docx_to_resized_images_images_with_same_id(self):
        docx_file_path = utils.get_fixture('cloned_images.docx')

        html_file_content = utils.get_fixture(
            'cloned_images.html',
            as_binary=True
        )

        html = self.exporter(docx_file_path).export()

        utils.assert_html_equal(html, html_file_content)