def scraper(): """Setup a test Scraper that handles FakeSource sources.""" scraper = Scraper() scraper.source_types['fake'] = FakeSource return scraper
def scraper(): """Setup a test Scraper that handles FakeSource sources.""" scraper = Scraper() scraper.source_types["fake"] = FakeSource return scraper
def make_scraper(self, **options): """Create a Scraper instance for management commands.""" return Scraper(**options)