File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff 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' ,)
You can’t perform that action at this time.
0 commit comments