feat: add complete yiyezhqiu productivity suite
This commit is contained in:
commit
e422ca8b2a
155 files changed
+18959
No files matched your search
@@ -0,0 +1,33 @@
|
||||
from pathlib import Path
|
||||
|
||||
from dx_productivity.bridge import launcher
|
||||
|
||||
|
||||
def test_compute_assembly_refdes_end_to_end(tmp_path: Path) -> None:
|
||||
request = tmp_path / "request.txt"
|
||||
output = tmp_path / "plan.txt"
|
||||
request.write_text(
|
||||
"T|0|1|1|1|C1|0|C1\n"
|
||||
"T|1|2|1|1|NOTE|0|C1\n"
|
||||
"T|2|1|1|1|R100|90|R100\n"
|
||||
"C|C1|10|20|0.5|0.3\n"
|
||||
"C|R100|5|6|0.4|0.9\n",
|
||||
encoding="ascii",
|
||||
)
|
||||
|
||||
exit_code = launcher.main(
|
||||
[
|
||||
"compute",
|
||||
"assembly-refdes",
|
||||
"--request",
|
||||
str(request),
|
||||
"--output",
|
||||
str(output),
|
||||
]
|
||||
)
|
||||
|
||||
assert exit_code == 0
|
||||
plan = output.read_text(encoding="ascii")
|
||||
assert "MOVE|0|10.0000|20.0000|0.00|0.3000|Arial\n" in plan
|
||||
assert "DELETE|1\n" in plan
|
||||
assert "MOVE|2|5.0000|6.0000|90.00|0.4000|Arial\n" in plan
|
||||
Reference in new issue
Block a user