1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
import pytest
from pyglet import window
from tests.interactive.windowed_test_base import WindowedTestCase
@pytest.mark.requires_user_validation
class WindowStylesTest(WindowedTestCase):
"""Test available window styles."""
pass
WindowStylesTest.create_test_case(
name='test_style_borderless',
description='Test that window style can be borderless.',
question='Do you see one borderless window?',
window_options={'style': window.Window.WINDOW_STYLE_BORDERLESS},
take_screenshot=False
)
WindowStylesTest.create_test_case(
name='test_style_tool',
description='Test that window style can be tool.',
question='Do you see one tool-styled window?',
window_options={'style': window.Window.WINDOW_STYLE_TOOL},
take_screenshot=False
)
WindowStylesTest.create_test_case(
name='test_style_dialog',
description='Test that window style can be dialog.',
question='Do you see one dialog-styled window?',
window_options={'style': window.Window.WINDOW_STYLE_DIALOG},
take_screenshot=False
)
|