def requires(self): yield QueryDb( # daily entries query=''' SELECT DATE(datetime), SUM(unique_count) AS entries FROM gomus_daily_entry WHERE datetime > date('2017-01-01') GROUP BY DATE(datetime) ORDER BY DATE(datetime) ''' # values before 2017 are not representative as there were # two exhibitions in parallel and very high visitor numbers ) yield ExhibitionPopularity() yield MuseumFacts()
def requires(self): return MuseumFacts()
def setUp(self): super().setUp() self.task = FetchAppstoreReviews() self.run_task(MuseumFacts()) self.task.get_country_codes = lambda: FAKE_COUNTRY_CODES
def requires(self): yield super().requires() yield MuseumFacts()
def requires(self): yield MuseumFacts() yield FetchTwitter()