Improved command management to reduce the number of instances
This commit is contained in:
@@ -24,7 +24,7 @@ class TestPanelBehaviour:
|
||||
panel = Panel(root_instance)
|
||||
|
||||
assert panel is not None
|
||||
assert panel.conf.left is True
|
||||
assert panel.conf.left is False
|
||||
assert panel.conf.right is True
|
||||
|
||||
def test_i_can_create_panel_with_custom_config(self, root_instance):
|
||||
@@ -157,7 +157,7 @@ class TestPanelBehaviour:
|
||||
"""Test that update_side_width() returns a panel element."""
|
||||
panel = Panel(root_instance)
|
||||
|
||||
result = panel.update_side_width("left", 300)
|
||||
result = panel.update_side_width("right", 300)
|
||||
|
||||
assert result is not None
|
||||
|
||||
@@ -196,7 +196,7 @@ class TestPanelRender:
|
||||
|
||||
@pytest.fixture
|
||||
def panel(self, root_instance):
|
||||
panel = Panel(root_instance)
|
||||
panel = Panel(root_instance, PanelConf(True, True))
|
||||
panel.set_main(Div("Main content"))
|
||||
panel.set_left(Div("Left content"))
|
||||
panel.set_right(Div("Right content"))
|
||||
|
||||
Reference in New Issue
Block a user