()
| 83 | |
| 84 | |
| 85 | def test_copy(): |
| 86 | h1 = HighLevelGraph( |
| 87 | {"a": {"a": "b"}, "b": {"b": 1}}, |
| 88 | {"a": {"b"}, "b": set()}, |
| 89 | ) |
| 90 | h1.get_all_dependencies() |
| 91 | assert h1.key_dependencies |
| 92 | h2 = h1.copy() |
| 93 | for k in ("layers", "dependencies", "key_dependencies"): |
| 94 | v1 = getattr(h1, k) |
| 95 | v2 = getattr(h2, k) |
| 96 | assert v1 is not v2 |
| 97 | assert v1 == v2 |
| 98 | |
| 99 | |
| 100 | def test_cull(): |
nothing calls this directly
no test coverage detected