File: img-characterize-image.feature

package info (click to toggle)
python-docx 1.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,904 kB
  • sloc: xml: 25,311; python: 23,028; makefile: 176
file content (16 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Feature: Characterize an image file
  In order to add a picture to a document
  As a programmer using the advanced python-docx API
  I need a way to determine the image content type and size

  Scenario Outline: Characterize an image file
    Given the image file '<filename>'
     When I construct an image using the image path
     Then the image has content type '<mime_type>'
      And the image is <cx> pixels wide
      And the image is <cy> pixels high
      And the image has <horz_dpi> horizontal dpi
      And the image has <vert_dpi> vertical dpi

   Examples: Image file characteristics
     | filename         | mime_type  |  cx  |  cy  | horz_dpi | vert_dpi |