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
|
|
@ -46,8 +46,12 @@ def _vm_with_grid() -> ProjectViewModel:
|
|||
# ────────────────────────── snap helper ─────────────────────────────
|
||||
def test_snap_to_grid_picks_nearest_lines() -> None:
|
||||
x, y, z = _snap_to_grid(
|
||||
2.2, 3.7, 0.6,
|
||||
x_lines=[0.0, 3.0], y_lines=[0.0, 4.0], z_lines=[0.0, 3.0],
|
||||
2.2,
|
||||
3.7,
|
||||
0.6,
|
||||
x_lines=[0.0, 3.0],
|
||||
y_lines=[0.0, 4.0],
|
||||
z_lines=[0.0, 3.0],
|
||||
)
|
||||
assert (x, y, z) == (3.0, 4.0, 0.0)
|
||||
|
||||
|
|
@ -99,10 +103,11 @@ def test_grid_less_canvas_never_emits_to_tool(qtbot) -> None: # type: ignore[no
|
|||
target. For a grid-less project, the canvas never emits, so the
|
||||
tool is never invoked. We therefore don't test rejection here.
|
||||
"""
|
||||
vm = ProjectViewModel(); vm.new_project()
|
||||
vm = ProjectViewModel()
|
||||
vm.new_project()
|
||||
tool = DrawNodeTool(_CanvasStub(), vm) # type: ignore[arg-type]
|
||||
tool.activate()
|
||||
assert vm.project.nodes == [] # type: ignore[union-attr]
|
||||
assert vm.project.nodes == [] # type: ignore[union-attr]
|
||||
|
||||
|
||||
@pytest.mark.gui
|
||||
|
|
|
|||
Loading…
Reference in a new issue