32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
from pathlib import Path
|
|
|
|
|
|
def test_generate_startup_assets_lists_all_feature_actions() -> None:
|
|
from dx_productivity.bridge.startup_assets import generate_startup_assets
|
|
|
|
assets = generate_startup_assets(Path("C:/portable/DxDesignerTools"))
|
|
|
|
assert set(assets.action_scripts) == {
|
|
"refdes",
|
|
"property-change",
|
|
"property-visibility",
|
|
"inspection",
|
|
"bom",
|
|
"compatibility",
|
|
"guide",
|
|
}
|
|
assert assets.action_scripts["refdes"] == "DxToolsOpenRefDes"
|
|
assert (
|
|
assets.action_scripts["property-change"]
|
|
== "DxToolsOpenPropertyChange"
|
|
)
|
|
assert assets.action_scripts["bom"] == "DxToolsOpenBom"
|
|
assert assets.action_scripts["compatibility"] == "DxToolsOpenCompatibility"
|
|
assert assets.action_scripts["guide"] == "DxToolsOpenGuide"
|
|
assert all(
|
|
"D:\\NET_CHECK" not in value for value in assets.action_scripts.values()
|
|
)
|
|
assert not any(
|
|
value.startswith("run ") for value in assets.action_scripts.values()
|
|
)
|