()
| 1087 | |
| 1088 | |
| 1089 | def test_substitute(): |
| 1090 | t1 = Task("key-1", func, TaskRef("a"), "b") |
| 1091 | assert t1.substitute({"a": "a"}) is t1 |
| 1092 | assert t1.substitute({"a": "a"}, key="foo") is not t1 |
| 1093 | t2 = t1.substitute({"a": "c"}) |
| 1094 | assert t2 is not t1 |
| 1095 | assert t2.dependencies == {"c"} |
| 1096 | |
| 1097 | assert t1({"a": "a"}) == t2({"c": "a"}) |
| 1098 | |
| 1099 | |
| 1100 | def test_alias_task_ref_key(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…