tests: Multiple changes to tests
- Remove all tests for the old encoding logic - Stop using the `nopecha` test page to test Cloudflare solver - Remove useless tests like testing for infinite timeout - Fixes to make the code compatible with new 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.encoding = "utf-8"
|
||||
mock_response.get_all_text.return_value = "Test content"
|
||||
mock_response.css_first.return_value = mock_response
|
||||
mock_response.css.return_value = [mock_response]
|
||||
|
||||
Reference in New Issue
Block a user