File: test_images.py

package info (click to toggle)
python-docxcompose 1.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,100 kB
  • sloc: python: 2,336; makefile: 14; xml: 5; sh: 3
file content (26 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from utils import ComposedDocument
from utils import FixtureDocument


def test_images():
    doc = FixtureDocument("images.docx")
    composed = ComposedDocument(
        "master.docx", "images.docx")

    assert composed == doc


def test_embedded_and_external_image():
    doc = FixtureDocument("embedded_and_external_image.docx")
    composed = ComposedDocument(
        "master.docx", "embedded_and_external_image.docx")

    assert composed == doc


def test_renumbering_of_non_visual_properties():
    expected = FixtureDocument("renumbering_nv_props.docx")
    composed = ComposedDocument(
        "header_with_image.docx", "image.docx")

    assert composed == expected