Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit a404e65

Browse files
committed
Ensure outerHTML in base Node class (with test).
1 parent d89630f commit a404e65

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

polyplug.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ def __init__(self, **kwargs):
294294
self._node = kwargs
295295
self.parent = kwargs.get("parent")
296296

297+
@property
298+
def outerHTML(self):
299+
return NotImplemented
300+
297301
@property
298302
def as_dict(self):
299303
return NotImplemented

tests/test_polyplug.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def test_node():
202202
assert n._node["a"] == 1
203203
assert n._node["b"] == 2
204204
assert n.parent is None
205+
assert n.outerHTML is NotImplemented
205206
assert n.as_dict is NotImplemented
206207

207208

0 commit comments

Comments
 (0)