Remove redundant tests

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013dggmjXoVy7JswW68o7M2V
This commit is contained in:
2026-07-16 13:43:28 +08:00
co-authored by Claude Fable 5
parent a8005babec
commit 6af5e1e02c
4 changed files with 0 additions and 504 deletions
-18
View File
@@ -59,11 +59,6 @@ class TestMultiGraphVertices(unittest.TestCase):
self.g: MultiGraph = MultiGraph()
"""The graph under test."""
def test_add_vertex(self) -> None:
"""Test adding a single vertex."""
self.g.add_vertex(1)
self.assertIn(1, self.g.vertices)
def test_add_multiple_vertices(self) -> None:
"""Test adding multiple vertices."""
for v in [1, 2, 3, 4]:
@@ -110,11 +105,6 @@ class TestMultiGraphEdges(unittest.TestCase):
self.assertEqual(e.u, 1)
self.assertEqual(e.v, 2)
def test_add_edge_returns_edge(self) -> None:
"""Test that add_edge returns an Edge object."""
e: Edge = self.g.add_edge(1, 2)
self.assertIsInstance(e, Edge)
def test_add_parallel_edges(self) -> None:
"""Test adding parallel edges between the same pair."""
e1: Edge = self.g.add_edge(1, 2)
@@ -151,14 +141,6 @@ class TestMultiGraphEdges(unittest.TestCase):
e: Edge = self.g.add_edge(1, 2, virtual=True)
self.assertTrue(e.virtual)
def test_edges_property(self) -> None:
"""Test that edges property returns all edges."""
e1: Edge = self.g.add_edge(1, 2)
e2: Edge = self.g.add_edge(2, 3)
ids: set[int] = {e.id for e in self.g.edges}
self.assertIn(e1.id, ids)
self.assertIn(e2.id, ids)
class TestMultiGraphNeighbors(unittest.TestCase):
"""Tests for neighbor/adjacency operations on MultiGraph."""