()
| 197 | |
| 198 | |
| 199 | def test_reference_remote(): |
| 200 | t1 = Task("key-1", func, "a", "b") |
| 201 | t2 = Task("key-2", func2, TaskRef("key-1"), "c") |
| 202 | with pytest.raises(RuntimeError): |
| 203 | t2() |
| 204 | assert t2({"key-1": t1()}) == func2(func("a", "b"), "c") |
| 205 | |
| 206 | |
| 207 | def test_reference_remote_twice_same(): |