Skip to content

Commit

Permalink
Fixup pcb test
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Dec 7, 2019
1 parent 8515576 commit 49c69d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_pcb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from os import path as osp
from pytest import *
from pykicad.pcb import *

Expand Down Expand Up @@ -38,7 +39,8 @@ def test_parse(self):

class PcbTests(unittest.TestCase):
def test_minimal_pcb(self):
pcb = Pcb().from_file('./minimal_pcb.kicad_pcb')
directory = osp.dirname(osp.abspath(__file__))
pcb = Pcb().from_file(osp.join(directory, 'minimal_pcb.kicad_pcb'))
assert pcb.version == 123
assert pcb.host == ['pcbnew', 'version']
assert len(pcb.nets) == 4
Expand Down

0 comments on commit 49c69d8

Please sign in to comment.