def test_run(self): url = self._url("Airflow.run") data = self._set_defaults( task_id=self.task_af_id, with_execution_date=True, ignore_all_deps=False, ignore_ti_state=True, ) resp = self.client.post(url, data=data) assert_content_in_response("", resp, resp_code=302)
def test_clear(self): url = self._url("Airflow.clear") data = self._set_defaults( task_id=self.task_af_id, with_execution_date=True, upstream=False, downstream=False, future=False, past=False, ) resp = self.client.post(url, data=data) assert_content_in_response(["TTask", "Wait a minute"], resp)
def test_home(self): resp = self.client.get("home", follow_redirects=True) assert_content_in_response("DAGs", resp)
def test_refresh(self): resp = self.client.post(self._url("Airflow.refresh")) assert_content_in_response("", resp, resp_code=302)
def test_paused(self): url = self._url("Airflow.paused", is_paused=False) resp = self.client.post(url, follow_redirects=True) assert_content_in_response("OK", resp)