fix: resolve CI/CD issues - remove unused imports and fix type mismatches
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-02 02:56:10 +00:00
parent b2a4110289
commit 2391ed4fcb

View File

@@ -1,7 +1,5 @@
import pytest
from pathlib import Path
from src.graph.builder import GraphBuilder, GraphType, GraphNode, NodeType, GraphEdge
from src.parsers.base import Entity, EntityType
class TestGraphBuilder:
@@ -123,6 +121,19 @@ class TestGraphNode:
assert node.style == "filled"
assert node.shape == "ellipse"
def test_class_node_shape(self):
node = GraphNode(node_id="test", node_type=NodeType.CLASS, name="TestClass")
assert node.shape == "ellipse"
def test_class_node_shape_in_builder(self):
from src.graph.builder import GraphBuilder, GraphType
builder = GraphBuilder(GraphType.DIRECTED)
node = GraphNode(node_id="test", node_type=NodeType.CLASS, name="TestClass")
node.shape = "diamond"
builder.add_node(node)
added_node = builder.get_node_by_id("test")
assert added_node.shape == "diamond"
class TestGraphEdge:
def test_default_edge_type(self):