tests: fix CLI tests according to last changes
This commit is contained in:
@@ -14,6 +14,7 @@ def configure_selector_mock():
|
||||
"""Helper function to create a properly configured Selector mock"""
|
||||
mock_response = MagicMock(spec=Selector)
|
||||
mock_response.body = "<html><body>Test content</body></html>"
|
||||
mock_response.html_content = "<html><body>Test content</body></html>"
|
||||
mock_response.encoding = "utf-8"
|
||||
mock_response.get_all_text.return_value = "Test content"
|
||||
mock_response.css_first.return_value = mock_response
|
||||
|
||||
Reference in New Issue
Block a user