class TestSpiderPipeline:
    def open_spider(self, spider):
        pass

    def process_item(self, item):
        return item


class TestSpiderExceptionPipeline:
    def open_spider(self, spider):
        raise RuntimeError("exception")

    def process_item(self, item):
        return item
