tangled
alpha
login
or
join now
dekker.one
/
Fourmi
0
fork
atom
A web scraper build to search specific information for a given compound (and its pseudonyms)
0
fork
atom
overview
issues
pulls
pipelines
Force a attribute of the test item to be None
dekker.one
11 years ago
147b148d
79cf15b9
+1
1 changed file
expand all
collapse all
unified
split
tests
test_pipeline.py
+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
16
+
self.testItem["source"] = None
16
17
pipe = pipelines.RemoveNonePipeline()
17
18
processed = pipe.process_item(self.testItem, spider.FourmiSpider())
18
19