(self)
| 293 | l.get_css("#name::text") |
| 294 | |
| 295 | def test_init_method_with_selector(self): |
| 296 | sel = Selector(text="<html><body><div>marta</div></body></html>") |
| 297 | l = ProcessorItemLoader(selector=sel) |
| 298 | assert l.selector is sel |
| 299 | |
| 300 | l.add_xpath("name", "//div/text()") |
| 301 | assert l.get_output_value("name") == ["Marta"] |
| 302 | |
| 303 | def test_init_method_with_selector_css(self): |
| 304 | sel = Selector(text="<html><body><div>marta</div></body></html>") |
nothing calls this directly
no test coverage detected