"""Tests for DRC tools.""" import pytest @pytest.mark.unit def test_create_drc_rule_set_standard(): """create_drc_rule_set should return rules for standard technology.""" from mckicad.tools.drc import create_drc_rule_set result = create_drc_rule_set(name="test_rules", technology="standard") assert result["success"] is True assert "rules" in result["data"] @pytest.mark.unit def test_create_drc_rule_set_invalid_technology(): """create_drc_rule_set should fail for unknown technology.""" from mckicad.tools.drc import create_drc_rule_set result = create_drc_rule_set(name="test", technology="quantum") assert result["success"] is False @pytest.mark.unit def test_get_manufacturing_constraints(): """get_manufacturing_constraints should return constraints dict.""" from mckicad.tools.drc import get_manufacturing_constraints result = get_manufacturing_constraints(technology="standard") assert result["success"] is True assert "constraints" in result["data"]