mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
20 lines
492 B
Python
20 lines
492 B
Python
import sys
|
|
from pathlib import Path
|
|
import zipfile
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
from examples import arduino_like
|
|
|
|
|
|
def test_arduino_like_board(tmp_path):
|
|
board = arduino_like.build_board()
|
|
zip_path = tmp_path / "mcu.zip"
|
|
board.export_gerbers(zip_path)
|
|
assert zip_path.exists()
|
|
with zipfile.ZipFile(zip_path) as z:
|
|
names = set(z.namelist())
|
|
assert {"GTL.gbr", "GBL.gbr", "GTO.gbr", "GBO.gbr"}.issubset(names)
|
|
|