MCPcopy Index your code
hub / github.com/python-openxml/python-docx / scale_fixture

Method scale_fixture

tests/image/test_image.py:202–207  ·  view source on GitHub ↗
(self, request, width_prop_, height_prop_)

Source from the content-addressed store, hash-verified

200 ]
201 )
202 def scale_fixture(self, request, width_prop_, height_prop_):
203 width, height, scaled_width, scaled_height = request.param
204 width_prop_.return_value = Emu(1000)
205 height_prop_.return_value = Emu(2000)
206 image = Image(None, None, None)
207 return image, width, height, (scaled_width, scaled_height)
208
209 @pytest.fixture
210 def size_fixture(self, image_header_):

Callers

nothing calls this directly

Calls 2

EmuClass · 0.90
ImageClass · 0.90

Tested by

no test coverage detected