Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
4226:3f7ca590a5da | 4227:dfccc90cacc6 |
---|---|
15 | 15 |
16 # You should have received a copy of the GNU Affero General Public License | 16 # You should have received a copy of the GNU Affero General Public License |
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 from unittest.mock import MagicMock, patch | 18 from unittest.mock import MagicMock, patch |
19 | 19 |
20 from PyQt6.QtWidgets import QApplication | |
21 import pytest | 20 import pytest |
22 | 21 |
23 from libervia.cli.call_gui import AVCallUI | 22 try: |
24 from libervia.frontends.tools import display_servers | 23 from libervia.cli.call_gui import AVCallUI |
24 from libervia.frontends.tools import display_servers | |
25 from PyQt6.QtWidgets import QApplication | |
26 except ModuleNotFoundError: | |
27 pytest.skip("PyQt6 is not available.", allow_module_level=True) | |
25 | 28 |
26 | 29 |
27 @pytest.fixture(scope="session") | 30 @pytest.fixture(scope="session") |
28 def qapplication(): | 31 def qapplication(): |
29 # QApplication is needed to instantiate any QWidget | 32 # QApplication is needed to instantiate any QWidget |