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

Function given_a_role_Cell_object_as_cell

features/steps/table.py:62–67  ·  view source on GitHub ↗
(context, role)

Source from the content-addressed store, hash-verified

60
61@given("a {role} _Cell object as cell")
62def given_a_role_Cell_object_as_cell(context, role):
63 coordinates = {"merge-origin": (0, 0), "spanned": (0, 1), "unmerged": (2, 2)}[role]
64 table = Presentation(test_pptx("tbl-cell")).slides[1].shapes[0].table
65 # ---create other_cell here where we know the coordinates---
66 context.cell = table.cell(*coordinates)
67 context.other_cell = table.cell(*coordinates)
68
69
70@given("a second proxy instance for that cell as other_cell")

Callers

nothing calls this directly

Calls 3

PresentationFunction · 0.90
test_pptxFunction · 0.90
cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…