diff --git a/tests/core/test_storage_core.py b/tests/core/test_storage_core.py index 21de243..3d7921a 100644 --- a/tests/core/test_storage_core.py +++ b/tests/core/test_storage_core.py @@ -175,16 +175,6 @@ class TestSaveRetrieveRoundTrip: # Path should be a list of tag names from root to element assert result["path"][-1] == "p" - def test_element_without_parent(self): - """A root element (no parent) should still be savable.""" - storage = self._make_storage() - tree = fromstring("
Root element
") - storage.save(tree, "root-elem") - - result = storage.retrieve("root-elem") - assert result is not None - assert "parent_name" not in result - def test_element_with_children_and_siblings(self): storage = self._make_storage() html_str = "

Sibling

ChildChild2
" @@ -289,4 +279,4 @@ class TestStorageToolsGetElementPath: def test_root_element_path(self): tree = fromstring("
Root
") path = _StorageTools._get_element_path(tree) - assert path == ("div",) + assert path == ('html', 'body', 'div',)