20 lines
400 B
Python
20 lines
400 B
Python
import ergogen_footprint_converter.main as main
|
|
|
|
def test_simple(tmp_path):
|
|
out_dir = tmp_path / "out"
|
|
out_dir.mkdir()
|
|
|
|
args = {
|
|
"in": "./data/simple/promicro.kicad_mod",
|
|
"out": out_dir
|
|
}
|
|
|
|
main.main(args)
|
|
|
|
expected = open("tests/integration/data/simple/promicro.js").readlines()
|
|
|
|
|
|
out = out_dir / "promicro.js"
|
|
assert out.read_text() == expected
|
|
|