From 28a38ad317d6938a1e7575d50ed06e30834f575a Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Sat, 27 Apr 2024 13:41:41 +0200 Subject: [PATCH] Integration test --- tests/integration/test_converter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_converter.py b/tests/integration/test_converter.py index dc124e4..1f4ca3c 100644 --- a/tests/integration/test_converter.py +++ b/tests/integration/test_converter.py @@ -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()