comparison tests/unit/cli/test_calls.py @ 4213:716dd791be46

tests (unit): fix tests
author Goffi <goffi@goffi.org>
date Fri, 23 Feb 2024 15:42:02 +0100
parents 2865e70b0b2c
children dfccc90cacc6
comparison
equal deleted inserted replaced
4212:5f2d496c633f 4213:716dd791be46
18 from unittest.mock import MagicMock, patch 18 from unittest.mock import MagicMock, patch
19 19
20 from PyQt6.QtWidgets import QApplication 20 from PyQt6.QtWidgets import QApplication
21 import pytest 21 import pytest
22 22
23 from libervia.cli.call_gui import AVCallGUI 23 from libervia.cli.call_gui import AVCallUI
24 from libervia.frontends.tools import display_servers 24 from libervia.frontends.tools import display_servers
25 25
26 26
27 @pytest.fixture(scope="session") 27 @pytest.fixture(scope="session")
28 def qapplication(): 28 def qapplication():
32 32
33 @pytest.fixture 33 @pytest.fixture
34 def av_call_gui(qapplication): 34 def av_call_gui(qapplication):
35 host = MagicMock() 35 host = MagicMock()
36 icons_path = MagicMock() 36 icons_path = MagicMock()
37 gui = AVCallGUI(host, icons_path) 37 gui = AVCallUI(host, icons_path)
38 gui.webrtc_call = MagicMock() 38 gui.webrtc_call = MagicMock()
39 return gui 39 return gui
40 40
41 41
42 def test_toggle_fullscreen(av_call_gui): 42 def test_toggle_fullscreen(av_call_gui):