Integration test
This commit is contained in:
@@ -8,6 +8,10 @@ def out_dir (tmp_path):
|
||||
out_dir.mkdir()
|
||||
return out_dir
|
||||
|
||||
@fixture
|
||||
def in_name ():
|
||||
return "promicro.kicad_mod"
|
||||
|
||||
@fixture
|
||||
def call_main (in_name, out_dir):
|
||||
args = {
|
||||
@@ -21,12 +25,12 @@ def call_main (in_name, out_dir):
|
||||
|
||||
|
||||
def test_exists(call_main):
|
||||
out = call_main("promicro.kicad_mod")
|
||||
out = call_main
|
||||
|
||||
assert out.exists()
|
||||
|
||||
def test_simple(call_main):
|
||||
out = call_main("promicro.kicad_mod")
|
||||
out = call_main
|
||||
|
||||
expected = open("tests/integration/data/simple/promicro.js").readlines()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user