def test_should_read_config(self): instance = cli.ConfigInfo(cli.NullAnonymizer()) text = str(instance) self.assertIn("TEST_EXECUTOR", text) self.assertIn("TEST_DAGS_FOLDER", text) self.assertIn("TEST_PLUGINS_FOLDER", text) self.assertIn("TEST_LOG_FOLDER", text) self.assertIn( "postgresql+psycopg2://postgres:airflow@postgres/airflow", text)
def test_should_be_string(self): self.assertTrue(str(cli.ToolsInfo(cli.NullAnonymizer())))
def test_should_be_string(self): text = str(cli.AirflowInfo(cli.NullAnonymizer())) self.assertIn("Apache Airflow [{}]".format(airflow_version), text)