()
| 213 | |
| 214 | |
| 215 | def test_reference_remote_twice_different(): |
| 216 | t1 = Task("key-1", func, "a", "b") |
| 217 | t2 = Task("key-2", func, "c", "d") |
| 218 | t3 = Task("key-3", func2, TaskRef("key-1"), TaskRef("key-2")) |
| 219 | with pytest.raises(RuntimeError): |
| 220 | t3() |
| 221 | assert t3({"key-1": t1(), "key-2": t2()}) == func2(func("a", "b"), func("c", "d")) |
| 222 | |
| 223 | |
| 224 | def test_task_nested(): |