MCPcopy Index your code
hub / github.com/scholarly-python-package/scholarly / test_scraperapi

Method test_scraperapi

test_module.py:40–47  ·  view source on GitHub ↗

Test that we can set up ScraperAPI successfully

(self)

Source from the content-addressed store, hash-verified

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
50class TestTorInternal(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

ScraperAPIMethod · 0.95
ProxyGeneratorClass · 0.90

Tested by

no test coverage detected