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

Method tables_fixture

tests/text/test_fonts.py:274–283  ·  view source on GitHub ↗
(
        self, stream_, name_table_, head_table_, _iter_table_records_, _TableFactory_
    )

Source from the content-addressed store, hash-verified

272
273 @pytest.fixture
274 def tables_fixture(
275 self, stream_, name_table_, head_table_, _iter_table_records_, _TableFactory_
276 ):
277 font = _Font(stream_)
278 _iter_table_records_.return_value = iter([("name", 11, 22), ("head", 33, 44)])
279 _TableFactory_.side_effect = [name_table_, head_table_]
280
281 expected_calls = [call("name", stream_, 11, 22), call("head", stream_, 33, 44)]
282 expected_tables = {"name": name_table_, "head": head_table_}
283 return font, _TableFactory_, expected_calls, expected_tables
284
285 @pytest.fixture
286 def table_count_fixture(self, _fields_):

Callers

nothing calls this directly

Calls 1

_FontClass · 0.90

Tested by

no test coverage detected