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

Method iter_fixture

tests/text/test_fonts.py:110–117  ·  view source on GitHub ↗
(self, _Font_)

Source from the content-addressed store, hash-verified

108
109 @pytest.fixture
110 def iter_fixture(self, _Font_):
111 directory = test_file_dir
112 font_file_path = testfile("calibriz.ttf")
113 font = _Font_.open.return_value.__enter__.return_value
114 font.family_name, font.is_bold, font.is_italic = "Arial", True, True
115 expected_calls = [call(font_file_path)]
116 expected_paths = [(("Arial", True, True), font_file_path)]
117 return directory, _Font_, expected_calls, expected_paths
118
119 @pytest.fixture
120 def osx_dirs_fixture(self, request):

Callers

nothing calls this directly

Calls 1

testfileFunction · 0.85

Tested by

no test coverage detected