Skip to content

Commit

Permalink
Update test_kicad_import_netlist.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky64 committed Apr 30, 2024
1 parent 2c5f249 commit ed249f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions electronics_abstract_parts/test_kicad_import_netlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,18 @@ def test_netlist(self):
# expected value is wonky because netlisting combines part and value
'Sensor_Temperature:MCP9700AT-ETT', 'MCP9700AT-ETT',
['dut', 'U1'], ['dut', 'U1'],
['electronics_model.KiCadSchematicBlock.KiCadBlackbox']),
['electronics_model.test_kicad_import_blackbox.KiCadBlackboxBlock',
'electronics_model.KiCadSchematicBlock.KiCadBlackbox']),
net.blocks)
self.assertIn(NetBlock('Symbol:Symbol_ESD-Logo_CopperTop', 'SYM1',
# expected value is wonky because netlisting combines part and value
'Graphic:SYM_ESD_Small', 'SYM_ESD_Small',
['dut', 'SYM1'], ['dut', 'SYM1'],
['electronics_model.KiCadSchematicBlock.KiCadBlackbox']),
['electronics_model.test_kicad_import_blackbox.KiCadBlackboxBlock',
'electronics_model.KiCadSchematicBlock.KiCadBlackbox']),
net.blocks)
self.assertIn(NetBlock('Resistor_SMD:R_0603_1608Metric', 'R1', '', '',
['dut', 'res'], ['dut', 'res'],
['electronics_abstract_parts.test_kicad_import_netlist.DummyResistor']),
['electronics_model.test_kicad_import_blackbox.KiCadBlackboxBlock',
'electronics_abstract_parts.test_kicad_import_netlist.DummyResistor']),
net.blocks)

0 comments on commit ed249f2

Please sign in to comment.