Fixed #24883 -- Added MigrationGraph.__repr__()

This commit is contained in:
Yoong Kang Lim 2015-06-01 22:46:45 +10:00 committed by Tim Graham
parent bf07ba523a
commit 076a63e672
2 changed files with 9 additions and 4 deletions

View file

@ -283,3 +283,4 @@ class GraphTests(SimpleTestCase):
graph.add_dependency("app_a.0003", ("app_a", "0003"), ("app_b", "0002"))
self.assertEqual(force_text(graph), "Graph: 5 nodes, 3 edges")
self.assertEqual(repr(graph), "<MigrationGraph: nodes=5, edges=3>")