Move to pdm as build env
This commit is contained in:
17
tests/integration/test_converter.py
Normal file
17
tests/integration/test_converter.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import ergogen_footprint_converter.main as main
|
||||
|
||||
def test_simple(tmp_path):
|
||||
out = tmp_path / "out/promicro.js"
|
||||
out.parent.mkdir()
|
||||
|
||||
args = {
|
||||
"in": "./data/simple/promicro.kicad_mod",
|
||||
"out": out
|
||||
}
|
||||
|
||||
main.main(args)
|
||||
|
||||
expected = open("tests/integration/data/simple/promicro.js").readlines()
|
||||
|
||||
assert out.read_file() == expected
|
||||
|
||||
Reference in New Issue
Block a user