Skip to content

Commit cf0d14f

Browse files
committed
Fix: Handle assignment on table hooks
1 parent f374f59 commit cf0d14f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pytest_html/table.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def append(self, html):
2929

3030

3131
class Cell(Table):
32+
def __setitem__(self, key, value):
33+
self.insert(key, value)
34+
3235
def insert(self, index, html):
3336
# backwards-compat
3437
if not isinstance(html, str):

0 commit comments

Comments
 (0)