def test_simple_task(self): t = SimplestTask(simplest_param=1) t.dbnd_run() t2 = SimplestTask(simplest_param=2) assert str(t2.simplest_output) != str(t.simplest_output) t3 = SimplestTask(task_band=t.task_band) assert str(t3.simplest_output) == str(t.simplest_output)
def test_foreign_context_should_not_fail(self): with new_dbnd_context(): t = SimplestTask() t.dbnd_run() TTaskWithInput(t_input=t).dbnd_run()