()
| 181 | |
| 182 | |
| 183 | def test_task_nested_sequence(): |
| 184 | # We do **not** recurse into structures since this kills performance |
| 185 | # we're only considering top-level task objects as arguments or kwargs |
| 186 | t1 = Task("key-1", func, "a", "b") |
| 187 | t2 = Task("key-2", func2, "c", "d") |
| 188 | |
| 189 | tseq = Task("seq", identity, [t1, t2]) |
| 190 | assert tseq() == [t1, t2] |
| 191 | |
| 192 | tseq = Task("set", identity, {t1, t2}) |
| 193 | assert tseq() == {t1, t2} |
| 194 | |
| 195 | tseq = Task("dict", identity, {"a": t1, "b": t2}) |
| 196 | assert tseq() == {"a": t1, "b": t2} |
| 197 | |
| 198 | |
| 199 | def test_reference_remote(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…