From d348d9aaf6d0eeee9262c25084f2f4f8896cd3d4 Mon Sep 17 00:00:00 2001 From: Fabio Pliger Date: Wed, 8 May 2024 14:26:05 -0500 Subject: [PATCH] lint --- pyscript.core/tests/integration/test_pyweb.py | 47 +++++++++++++------ 1 file changed, 32 insertions(+), 15 deletions(-) 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