MCPcopy Create free account
hub / github.com/scanny/python-pptx / it_can_scale_its_dimensions

Method it_can_scale_its_dimensions

tests/parts/test_image.py:70–75  ·  view source on GitHub ↗
(self, width, height, expected_width, expected_height)

Source from the content-addressed store, hash-verified

68 ),
69 )
70 def it_can_scale_its_dimensions(self, width, height, expected_width, expected_height):
71 with open(test_image_path, "rb") as f:
72 blob = f.read()
73 image_part = ImagePart(None, None, None, blob)
74
75 assert image_part.scale(width, height) == (expected_width, expected_height)
76
77 def it_knows_its_pixel_dimensions_to_help(self):
78 with open(test_image_path, "rb") as f:

Callers

nothing calls this directly

Calls 3

scaleMethod · 0.95
ImagePartClass · 0.90
readMethod · 0.80

Tested by

no test coverage detected