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