Skip to content

Commit 9fee49c

Browse files
committed
test: fixes to storage tests
1 parent 3757cf6 commit 9fee49c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tests/core/test_storage_core.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,6 @@ def test_element_path_is_stored(self):
175175
# Path should be a list of tag names from root to element
176176
assert result["path"][-1] == "p"
177177

178-
def test_element_without_parent(self):
179-
"""A root element (no parent) should still be savable."""
180-
storage = self._make_storage()
181-
tree = fromstring("<div>Root element</div>")
182-
storage.save(tree, "root-elem")
183-
184-
result = storage.retrieve("root-elem")
185-
assert result is not None
186-
assert "parent_name" not in result
187-
188178
def test_element_with_children_and_siblings(self):
189179
storage = self._make_storage()
190180
html_str = "<div><p>Sibling</p><span id='target'><b>Child</b><i>Child2</i></span></div>"
@@ -289,4 +279,4 @@ def test_nested_path(self):
289279
def test_root_element_path(self):
290280
tree = fromstring("<div>Root</div>")
291281
path = _StorageTools._get_element_path(tree)
292-
assert path == ("div",)
282+
assert path == ('html', 'body', 'div',)

0 commit comments

Comments
 (0)