Example #1
0
 def setUp(self):
     today = datetime.datetime.utcnow()
     self.edate = today.strftime("%Y-%m-%d")
     self.sdate = (today - datetime.timedelta(days=7)).strftime("%Y-%m-%d")
     self.processor = USGSQuakeProcessor(edate=self.edate, sdate=self.sdate)
     httpretty.enable()
Example #2
0
def usgs_quake_task():
    processor = USGSQuakeProcessor()
    processor.run()