Example #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,
        ])
Example #2
0
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)
Example #3
0
 def test_run_airflow_dag(self):
     """
     Test that `databand --help` fits on one screen
     """
     run_dbnd_subprocess__dbnd_run(["bash_dag"])
Example #4
0
 def test_external_task_cmd_line(self):
     run_dbnd_subprocess__dbnd_run(
         ["dbnd_sanity_check", "--env", "local_resubmit"])