chore: adopt remaining local development state
Catch-all for the intermixed residue of the unpushed otko-development work ported into this tree: combinations/console-dock/quick-guide wiring across commands, core, services, views and tests; repo-wide ruff-format normalization; README/CONTRIBUTING updates; and the toolbar default (both toolbars now open in the top area, quick guide text updated). Splitting this further would require hunk-level surgery with low confidence; the preceding commits in this branch isolate the self-contained features.
This commit is contained in:
parent
cb4bf8fccd
commit
ba783718d4
152 changed files with 3394 additions and 1651 deletions
|
|
@ -297,9 +297,9 @@ class TestRealFiles:
|
|||
steel2 = _find_entry(catalog, "Steel02")
|
||||
assert steel2 is not None
|
||||
form = next(f for f in steel2.fields if f.name == "Formulation")
|
||||
assert len(form.dependencies) == 3, (
|
||||
f"Expected 3 dependency rules on Formulation, got {len(form.dependencies)}"
|
||||
)
|
||||
assert (
|
||||
len(form.dependencies) == 3
|
||||
), f"Expected 3 dependency rules on Formulation, got {len(form.dependencies)}"
|
||||
|
||||
def test_steel02_formulation_dep_triggers(self, catalog: CatalogSpec) -> None:
|
||||
steel2 = _find_entry(catalog, "Steel02")
|
||||
|
|
@ -316,18 +316,18 @@ class TestRealFiles:
|
|||
def test_all_mat_entries_have_book(self, catalog: CatalogSpec) -> None:
|
||||
for book in catalog.mat_books:
|
||||
for entry in book.entries:
|
||||
assert entry.book == book.name, (
|
||||
f"{entry.name!r} has book={entry.book!r}, expected {book.name!r}"
|
||||
)
|
||||
assert (
|
||||
entry.book == book.name
|
||||
), f"{entry.name!r} has book={entry.book!r}, expected {book.name!r}"
|
||||
|
||||
def test_all_fields_have_valid_widget_type(self, catalog: CatalogSpec) -> None:
|
||||
valid = {"CB", "UNITS", "MAT", "SCALAR", "TUPLE"}
|
||||
for book in catalog.mat_books:
|
||||
for entry in book.entries:
|
||||
for f in entry.fields:
|
||||
assert f.widget_type in valid, (
|
||||
f"{entry.name}.{f.name}: unknown widget_type={f.widget_type!r}"
|
||||
)
|
||||
assert (
|
||||
f.widget_type in valid
|
||||
), f"{entry.name}.{f.name}: unknown widget_type={f.widget_type!r}"
|
||||
|
||||
def test_point_restraints_condtype(self, catalog: CatalogSpec) -> None:
|
||||
entry = _find_cnd_entry(catalog, "Point_Restraints")
|
||||
|
|
@ -354,9 +354,9 @@ class TestRealFiles:
|
|||
for fspec in entry.fields:
|
||||
for rule in fspec.dependencies:
|
||||
for act in rule.actions:
|
||||
assert act.action in valid_actions, (
|
||||
f"{entry.name}.{fspec.name}: invalid action {act.action!r}"
|
||||
)
|
||||
assert (
|
||||
act.action in valid_actions
|
||||
), f"{entry.name}.{fspec.name}: invalid action {act.action!r}"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue