Ejemplo n.º 1
0
 def test_shortened_task_name_reference(self, capfd):
     dbnd_cmd(
         "run",
         "dbnd_test_scenarios.complex_package_structure.complex_package.complex_structure_pipeline",
     )
     output = capfd.readouterr()
     assert "Auto-decorating and treating it as @task" not in output.out
     assert "Auto-decorating and treating it as @task" not in output.err
Ejemplo n.º 2
0
 def test_show_configs(self):
     dbnd_cmd("show-configs", [])
Ejemplo n.º 3
0
 def test_show_tasks(self):
     dbnd_cmd("show-tasks", [])
Ejemplo n.º 4
0
def test_tracker_wait(mock_composite_store):
    # works without global tracker, as all tests runs with [file,console] trackers only

    mock_composite_store.side_effect = [False, False, True, True]
    dbnd_cmd("tracker", ["wait"])
    assert mock_composite_store.call_count == 4