コード例 #1
0
    def test_external_task_cmd_line(self):

        run_dbnd_subprocess__dbnd_run([
            "dbnd_sanity_check",
            "--env",
            "local_resubmit",
            "--conf-file",
            self.test_config,
        ])
コード例 #2
0
ファイル: test_cmdline_real.py プロジェクト: lbtanh/dbnd
def run_dbnd_subprocess_test(*args, **kwargs):
    logger.error(
        "  cwd='%s'," " sys.path=\n\t%s" "\nPYTHONPATH=%s",
        os.getcwd(),
        "\n\t".join(sys.path),
        os.environ.get("PYTHONPATH"),
    )
    env = os.environ.copy()
    env["PYTHONPATH"] = ":".join(
        [
            env.get("PYTHONPATH", ""),
            project_path("modules", "dbnd"),
        ]  # we add current project so we can import test_dbnd
    )
    return run_dbnd_subprocess__dbnd_run(*args, module=factories, env=env, **kwargs)
コード例 #3
0
 def test_run_airflow_dag(self):
     """
     Test that `databand --help` fits on one screen
     """
     run_dbnd_subprocess__dbnd_run(["bash_dag"])
コード例 #4
0
 def test_external_task_cmd_line(self):
     run_dbnd_subprocess__dbnd_run(
         ["dbnd_sanity_check", "--env", "local_resubmit"])