diff --git a/pyscript.core/tests/integration/test_pyweb.py b/pyscript.core/tests/integration/test_pyweb.py index 76e0c57e..11cb6973 100644 --- a/pyscript.core/tests/integration/test_pyweb.py +++ b/pyscript.core/tests/integration/test_pyweb.py @@ -25,34 +25,38 @@ DEFAULT_ELEMENT_ATTRIBUTES = { "virtualkeyboardpolicy": "manual", } -INTERPRETERS = ['py', 'mpy'] +INTERPRETERS = ["py", "mpy"] + @pytest.fixture(params=INTERPRETERS) def interpreter(request): return request.param + class TestElements(PyScriptTest): """Test all elements in the pyweb.ui.elements module. - + This class tests all elements in the pyweb.ui.elements module. It creates an element of each type, both executing in the main thread and in a worker. It runs each test for each interpreter defined in `INTERPRETERS` - + Each individual element test looks for the element properties, sets a value on each the supported properties and checks if the element was created correctly and all it's properties were set correctly. """ + def _create_el_and_basic_asserts( self, el_type, el_text=None, - interpreter='py', + interpreter="py", properties=None, expected_errors=None, additional_selector_rules=None, ): """Create an element with all its properties set, by running