diff --git a/pyproject.toml b/pyproject.toml index f8ba4183..51a03398 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ dependencies = [ "bec_ipython_client~=3.52", # needed for jupyter console "bec_lib~=3.52", - "bec_qthemes~=1.0, >=1.1.1", + "bec_qthemes~=1.0, >=1.1.2", "black~=25.0", # needed for bw-generate-cli "isort~=5.13, >=5.13.2", # needed for bw-generate-cli "pydantic~=2.0", diff --git a/tests/unit_tests/conftest.py b/tests/unit_tests/conftest.py index 194bfed7..b1e858c4 100644 --- a/tests/unit_tests/conftest.py +++ b/tests/unit_tests/conftest.py @@ -26,8 +26,7 @@ def pytest_runtest_makereport(item, call): @pytest.fixture(autouse=True) def qapplication(qtbot, request, testable_qtimer_class): # pylint: disable=unused-argument qapp = QApplication.instance() - if not hasattr(qapp, "theme"): - apply_theme("light") + apply_theme("light") qapp.processEvents() yield @@ -41,7 +40,6 @@ def qapplication(qtbot, request, testable_qtimer_class): # pylint: disable=unus bec_dispatcher.stop_cli_server() testable_qtimer_class.check_all_stopped(qtbot) - qapp = QApplication.instance() qapp.processEvents() if hasattr(qapp, "os_listener") and qapp.os_listener: qapp.removeEventFilter(qapp.os_listener)