(self)
| 163 | graph.ensure_not_cyclic() |
| 164 | |
| 165 | def test_circular_graph_2(self): |
| 166 | graph = MigrationGraph() |
| 167 | graph.add_node(("A", "0001"), None) |
| 168 | graph.add_node(("C", "0001"), None) |
| 169 | graph.add_node(("B", "0001"), None) |
| 170 | graph.add_dependency("A.0001", ("A", "0001"), ("B", "0001")) |
| 171 | graph.add_dependency("B.0001", ("B", "0001"), ("A", "0001")) |
| 172 | graph.add_dependency("C.0001", ("C", "0001"), ("B", "0001")) |
| 173 | |
| 174 | with self.assertRaises(CircularDependencyError): |
| 175 | graph.ensure_not_cyclic() |
| 176 | |
| 177 | def test_iterative_dfs(self): |
| 178 | graph = MigrationGraph() |
nothing calls this directly
no test coverage detected