validate_consistency() raises an error if there's an isolated dummy node.
(self)
| 297 | graph.validate_consistency() |
| 298 | |
| 299 | def test_validate_consistency_dummy(self): |
| 300 | """ |
| 301 | validate_consistency() raises an error if there's an isolated dummy |
| 302 | node. |
| 303 | """ |
| 304 | msg = "app_a.0001 (req'd by app_b.0002) is missing!" |
| 305 | graph = MigrationGraph() |
| 306 | graph.add_dummy_node( |
| 307 | key=("app_a", "0001"), origin="app_b.0002", error_message=msg |
| 308 | ) |
| 309 | with self.assertRaisesMessage(NodeNotFoundError, msg): |
| 310 | graph.validate_consistency() |
| 311 | |
| 312 | def test_remove_replaced_nodes(self): |
| 313 | """ |
nothing calls this directly
no test coverage detected