Test if it's of Request type
This commit is contained in:
parent
073e5a12bb
commit
e0df310de7
@ -43,7 +43,10 @@ class TestFoumiSpider(unittest.TestCase):
|
|||||||
|
|
||||||
src2 = ChemSpider()
|
src2 = ChemSpider()
|
||||||
self.spi.add_source(src2)
|
self.spi.add_source(src2)
|
||||||
self.assertGreater(len(self.spi.start_requests()), 0)
|
requests = self.spi.start_requests()
|
||||||
|
self.assertGreater(len(requests), 0)
|
||||||
|
self.assertIsInstance(requests[0], Request)
|
||||||
|
|
||||||
|
|
||||||
def test_synonym_requests(self):
|
def test_synonym_requests(self):
|
||||||
# A test for the synonym request function
|
# A test for the synonym request function
|
||||||
|
Reference in New Issue
Block a user