A web scraper build to search specific information for a given compound (and its pseudonyms)

Force a attribute of the test item to be None

+1
+1
tests/test_pipeline.py
··· 13 13 def test_none_pipeline(self): 14 14 # Testing the pipeline that replaces the None values in items. 15 15 self.testItem["value"] = "abc" 16 + self.testItem["source"] = None 16 17 pipe = pipelines.RemoveNonePipeline() 17 18 processed = pipe.process_item(self.testItem, spider.FourmiSpider()) 18 19