summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Galigniana <marcelogaligniana@gmail.com>2023-02-13 21:23:30 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-15 07:40:19 +0100
commitf608e6a157fcf8d7e91fe8b120d21b78a4df1fb9 (patch)
treec59a24c7a728daf8fb33624657fab3441cdd8bee
parent5b23d6666e7166a797f423c7b2c74aa85feb3d63 (diff)
Completed test coverage for django.db.migrations.graph.
-rw-r--r--tests/migrations/test_graph.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/migrations/test_graph.py b/tests/migrations/test_graph.py
index a9efb172d9..033a5978e2 100644
--- a/tests/migrations/test_graph.py
+++ b/tests/migrations/test_graph.py
@@ -460,6 +460,10 @@ class NodeTests(SimpleTestCase):
node = Node(("app_a", "0001"))
self.assertEqual(repr(node), "<Node: ('app_a', '0001')>")
+ def test_node_str(self):
+ node = Node(("app_a", "0001"))
+ self.assertEqual(str(node), "('app_a', '0001')")
+
def test_dummynode_repr(self):
node = DummyNode(
key=("app_a", "0001"),