tests package¶
Submodules¶
tests.test_countries module¶
tests.test_models module¶
tests.test_providers module¶
Tests for proxy-db package.
-
class
tests.test_providers.TestNoProviderInfiniteLoop(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest to make sure that it doesn’t fall into an infinite loop when next(ProxiesList(country)) is called with a country with no proxies.
-
test_infinite_recursion_loop_solution(reload_provider_mock, find_db_proxy_mock)¶ This call was falling into a recursion loop. Now tries only twice and then raise an StopIteration exception.
-
-
class
tests.test_providers.TestProvider(methodName='runTest')¶ Bases:
unittest.case.TestCase-
proxies= [{'proxy': ('12.131.91.51', '8888')}, {'proxy': ('8.10.81.82', '7171')}]¶
-
test_find_page_proxies()¶
-
test_process_proxies(mock_session)¶
-
test_request()¶
-
url= 'https://domain.com/'¶
-
tests.test_utils module¶
Module contents¶
Unit test package for proxy_db.