Re-organised ribbons. Fixed bug in rendering.
Python CI / test (push) Successful in 1m31s
Lint / lint (push) Successful in 1m7s
Tests / test (3.11) (push) Successful in 1m43s
Tests / test (3.12) (push) Successful in 1m44s
Tests / test (3.13) (push) Successful in 1m38s
Tests / test (3.14) (push) Successful in 1m17s
Python CI / test (push) Successful in 1m31s
Lint / lint (push) Successful in 1m7s
Tests / test (3.11) (push) Successful in 1m43s
Tests / test (3.12) (push) Successful in 1m44s
Tests / test (3.13) (push) Successful in 1m38s
Tests / test (3.14) (push) Successful in 1m17s
This commit is contained in:
@@ -373,9 +373,9 @@ class TestLayoutTabDelegation:
|
||||
|
||||
window.project.snap_to_grid = False
|
||||
|
||||
window.layout_toggle_grid_snap()
|
||||
window.toggle_grid_snap()
|
||||
|
||||
# Should delegate to toggle_grid_snap
|
||||
# Should toggle snap_to_grid
|
||||
assert window.project.snap_to_grid is True
|
||||
assert window._update_view_called
|
||||
|
||||
@@ -385,7 +385,7 @@ class TestLayoutTabDelegation:
|
||||
|
||||
window.project.snap_to_edges = False
|
||||
|
||||
window.layout_toggle_edge_snap()
|
||||
window.toggle_edge_snap()
|
||||
|
||||
assert window.project.snap_to_edges is True
|
||||
assert window._update_view_called
|
||||
@@ -396,7 +396,7 @@ class TestLayoutTabDelegation:
|
||||
|
||||
window.project.snap_to_guides = False
|
||||
|
||||
window.layout_toggle_guide_snap()
|
||||
window.toggle_guide_snap()
|
||||
|
||||
assert window.project.snap_to_guides is True
|
||||
assert window._update_view_called
|
||||
@@ -407,13 +407,13 @@ class TestLayoutTabDelegation:
|
||||
|
||||
window.project.show_snap_lines = False
|
||||
|
||||
window.layout_toggle_snap_lines()
|
||||
window.toggle_snap_lines()
|
||||
|
||||
assert window.project.show_snap_lines is True
|
||||
assert window._update_view_called
|
||||
|
||||
def test_layout_set_grid_size_delegates(self, qtbot):
|
||||
"""Test layout tab grid size delegates to main method"""
|
||||
"""Test grid size dialog works"""
|
||||
window = TestViewWindow()
|
||||
qtbot.addWidget(window)
|
||||
|
||||
@@ -422,12 +422,12 @@ class TestLayoutTabDelegation:
|
||||
page.layout = layout
|
||||
window._current_page = page
|
||||
|
||||
# Mock dialog to verify delegation
|
||||
# Mock dialog to verify it runs
|
||||
mock_dialog = Mock(spec=QDialog)
|
||||
mock_dialog.exec.return_value = QDialog.DialogCode.Rejected
|
||||
|
||||
with patch("PyQt6.QtWidgets.QDialog", return_value=mock_dialog):
|
||||
window.layout_set_grid_size()
|
||||
window.set_grid_size()
|
||||
|
||||
# Verify method was called (dialog creation attempted)
|
||||
# Verify dialog was shown
|
||||
mock_dialog.exec.assert_called_once()
|
||||
|
||||
Reference in New Issue
Block a user