Integration test

This commit is contained in:
Jonas Zeunert
2024-04-27 13:41:41 +02:00
parent 254c714c8b
commit 28a38ad317

View File

@@ -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()