18 lines
368 B
Python
18 lines
368 B
Python
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
|
|
|