Update tests other than tree-related
This commit is contained in:
+5
-13
@@ -20,6 +20,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
from PyQt5.QtGui import QFont, QIcon, QPixmap
|
||||
from PyQt5.QtWidgets import QWidget
|
||||
|
||||
@@ -28,7 +30,9 @@ class MockGuiMain(QWidget):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.mainStatus = MockStatusBar()
|
||||
self.mainStatus = MagicMock()
|
||||
self.docEditor = MagicMock()
|
||||
self.docViewer = MagicMock()
|
||||
self.projPath = ""
|
||||
return
|
||||
|
||||
@@ -52,18 +56,6 @@ class MockGuiMain(QWidget):
|
||||
return "close"
|
||||
|
||||
|
||||
class MockStatusBar:
|
||||
|
||||
def __init__(self):
|
||||
return
|
||||
|
||||
def setStatus(self, text):
|
||||
return
|
||||
|
||||
def updateProjectStatus(self, status):
|
||||
return
|
||||
|
||||
|
||||
class MockTheme:
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user