feat: add safe native Mentor PDF exporter and tested portable UI
This commit is contained in:
1 parent
10a87d2cee
commit
d4928af5b6
33 files changed
+2267
-13
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from pathlib import Path
|
||||
import pytest
|
||||
|
||||
@pytest.fixture
|
||||
def project_factory(tmp_path):
|
||||
def make(relative="board", name="board", schematic=True):
|
||||
root = tmp_path / relative
|
||||
root.mkdir(parents=True, exist_ok=True)
|
||||
project = root / f"{name}.prj"
|
||||
project.write_text('SECTION DesignInfo\nKEY FrontEndSnapshot "DxD"\nENDSECTION\nSECTION Board1\nKEY RootBlock "ROOT"\nENDSECTION\nSECTION iCDB\nKEY iCDBDir ".\\database"\nENDSECTION\n' if schematic else 'SECTION PCB\nKEY ConfigType "PCB"\nENDSECTION\n')
|
||||
(root / "database").mkdir(exist_ok=True)
|
||||
(root / "database" / "icdb.dat").write_bytes(b"sample database")
|
||||
return project
|
||||
return make
|
||||
Reference in new issue
Block a user