Test that we can set up ScraperAPI successfully
(self)
| 38 | |
| 39 | @unittest.skipUnless(skipUnless, reason="No ScraperAPI key found") |
| 40 | def test_scraperapi(self): |
| 41 | """ |
| 42 | Test that we can set up ScraperAPI successfully |
| 43 | """ |
| 44 | proxy_generator = ProxyGenerator() |
| 45 | success = proxy_generator.ScraperAPI(os.getenv('SCRAPER_API_KEY')) |
| 46 | self.assertTrue(success) |
| 47 | self.assertEqual(proxy_generator.proxy_mode, "SCRAPERAPI") |
| 48 | |
| 49 | |
| 50 | class TestTorInternal(unittest.TestCase): |
nothing calls this directly
no test coverage detected