def test_system_info(self): instance = info_command.AirflowInfo(info_command.NullAnonymizer()) expected = { 'uname', 'architecture', 'OS', 'python_location', 'locale', 'python_version' } assert self.unique_items(instance._system_info) == expected
def test_tools_info(self): instance = info_command.AirflowInfo(info_command.NullAnonymizer()) expected = { 'cloud_sql_proxy', 'gcloud', 'git', 'kubectl', 'mysql', 'psql', 'sqlite3', 'ssh', } assert self.unique_items(instance._tools_info) == expected
def test_airflow_info(self): importlib.reload(airflow_local_settings) configure_logging() instance = info_command.AirflowInfo(info_command.NullAnonymizer()) expected = { 'executor', 'version', 'task_logging_handler', 'plugins_folder', 'base_log_folder', 'remote_base_log_folder', 'dags_folder', 'sql_alchemy_conn', } assert self.unique_items(instance._airflow_info) == expected
def test_info(self): instance = info_command.AirflowInfo(info_command.NullAnonymizer()) text = capture_show_output(instance) self.assertIn("Apache Airflow", text) self.assertIn(airflow_version, text)
def test_should_be_string(self): text = str(info_command.AirflowInfo(info_command.NullAnonymizer())) self.assertIn("Apache Airflow [{}]".format(airflow_version), text)
def test_info(self): instance = info_command.AirflowInfo(info_command.NullAnonymizer()) text = capture_show_output(instance) assert "Apache Airflow" in text assert airflow_version in text
def test_paths_info(self): instance = info_command.AirflowInfo(info_command.NullAnonymizer()) expected = {'airflow_on_path', 'airflow_home', 'system_path', 'python_path'} assert self.unique_items(instance._paths_info) == expected