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

Method it_provides_access_to_its_rows

tests/test_table.py:71–80  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

69 assert _Cell_.call_args_list == [call(tc, table) for tc in expected_tcs]
70
71 def it_provides_access_to_its_rows(self, request):
72 rows_ = instance_mock(request, _RowCollection)
73 _RowCollection_ = class_mock(request, "pptx.table._RowCollection", return_value=rows_)
74 tbl = element("a:tbl")
75 table = Table(tbl, None)
76
77 rows = table.rows
78
79 _RowCollection_.assert_called_once_with(tbl, table)
80 assert rows is rows_
81
82 def it_updates_graphic_frame_width_on_width_change(self, dx_fixture):
83 table, expected_width = dx_fixture

Callers

nothing calls this directly

Calls 4

TableClass · 0.90
instance_mockFunction · 0.85
class_mockFunction · 0.85
elementFunction · 0.85

Tested by

no test coverage detected