()
| 758 | |
| 759 | |
| 760 | def test_dependencies_mapping_doesnt_mutate_task(): |
| 761 | |
| 762 | t = Task("key", func, "a", "b") |
| 763 | t2 = Task("key2", func, "a", t.ref()) |
| 764 | |
| 765 | assert t2.dependencies == {"key"} |
| 766 | |
| 767 | dsk = {t.key: t, t2.key: t2} |
| 768 | deps = DependenciesMapping(dsk) |
| 769 | del deps[t.key] |
| 770 | # The getitem is doing weird stuff and could mutate the task state |
| 771 | deps[t2.key] |
| 772 | assert t2.dependencies == {"key"} |
| 773 | |
| 774 | |
| 775 | def test_fuse_tasks_key(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…