diff tests/unit/cli/test_calls.py @ 4227:dfccc90cacc6

tests: fix and update tests: - update code to newer version of `sh` - update code to newer version of `selenium` - update names of OMEMO algorithms - fix paths and names used to mount source to the test container - skip modules using `Gst` and `PyQt` when they are not available.
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 17:31:56 +0100
parents 716dd791be46
children
line wrap: on
line diff
--- a/tests/unit/cli/test_calls.py	Tue Mar 05 17:31:56 2024 +0100
+++ b/tests/unit/cli/test_calls.py	Tue Mar 05 17:31:56 2024 +0100
@@ -17,11 +17,14 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 from unittest.mock import MagicMock, patch
 
-from PyQt6.QtWidgets import QApplication
 import pytest
 
-from libervia.cli.call_gui import AVCallUI
-from libervia.frontends.tools import display_servers
+try:
+    from libervia.cli.call_gui import AVCallUI
+    from libervia.frontends.tools import display_servers
+    from PyQt6.QtWidgets import QApplication
+except ModuleNotFoundError:
+    pytest.skip("PyQt6 is not available.", allow_module_level=True)
 
 
 @pytest.fixture(scope="session")