def test_requires_with_overwrite(self):
     kwargs = self._get_kwargs()
     kwargs['overwrite'] = True
     print kwargs
     task = InsertToMysqlLastCountryPerCourseTask(**kwargs)
     required_tasks = task.requires()
     print required_tasks
     query_task = required_tasks['insert_source']
     self.assertTrue(query_task.overwrite)
 def test_requires_with_overwrite(self):
     kwargs = self._get_kwargs()
     kwargs['overwrite'] = True
     print kwargs
     task = InsertToMysqlLastCountryPerCourseTask(**kwargs)
     required_tasks = task.requires()
     print required_tasks
     query_task = required_tasks['insert_source']
     self.assertTrue(query_task.overwrite)
 def test_requires(self):
     task = InsertToMysqlLastCountryPerCourseTask(**self._get_kwargs())
     required_tasks = dict(task.requires())
     self.assertEquals(len(required_tasks), 2)
     self.assertEquals(required_tasks['credentials'].output().path,
                       's3://fake/credentials.json')
     self.assertEquals(
         required_tasks['insert_source'].output().path,
         's3://fake/warehouse/course_enrollment_location_current')
 def test_requires(self):
     task = InsertToMysqlLastCountryPerCourseTask(**self._get_kwargs())
     required_tasks = dict(task.requires())
     self.assertEquals(len(required_tasks), 2)
     self.assertEquals(required_tasks['credentials'].output().path, 's3://fake/credentials.json')
     self.assertEquals(required_tasks['insert_source'].output().path, 's3://fake/warehouse/course_enrollment_location_current')