Remove all END Class comments

This commit is contained in:
Veronica Berglyd Olsen
2024-05-10 16:00:56 +02:00
parent bc71a62199
commit 2afe0ebbe9
71 changed files with 87 additions and 407 deletions
+1 -9
View File
@@ -23,11 +23,11 @@ from __future__ import annotations
from PyQt5.QtGui import QPixmap
from PyQt5.QtWidgets import QWidget
# =========================================================================== #
# Mock GUI
# =========================================================================== #
class MockGuiMain(QWidget):
def __init__(self):
@@ -55,8 +55,6 @@ class MockGuiMain(QWidget):
def close(self):
return "close"
# END Class MockGuiMain
class MockStatusBar:
@@ -69,8 +67,6 @@ class MockStatusBar:
def updateProjectStatus(self, status):
return
# END Class MockStatusBar
class MockTheme:
@@ -81,8 +77,6 @@ class MockTheme:
def getPixmap(self, *a):
return QPixmap()
# END Class MockTheme
class MockApp:
@@ -92,8 +86,6 @@ class MockApp:
def installTranslator(self, language):
return
# END Class MockApp
# =========================================================================== #
# Error Functions
+2 -5
View File
@@ -22,10 +22,9 @@ from __future__ import annotations
import pytest
from tools import SimpleDialog
from PyQt5.QtGui import QWheelEvent
from PyQt5.QtCore import QPoint, QPointF, Qt
from PyQt5.QtGui import QWheelEvent
from tools import SimpleDialog
from novelwriter.extensions.modified import NComboBox, NDoubleSpinBox, NSpinBox
@@ -46,8 +45,6 @@ class MockWheelEvent(QWheelEvent):
self.ignored = True
return
# END Class MockWheelEvent
@pytest.mark.gui
def testExtModified_NComboBox(qtbot, monkeypatch):
+2 -6
View File
@@ -22,8 +22,8 @@ from __future__ import annotations
import shutil
from pathlib import Path
from datetime import datetime
from pathlib import Path
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QWidget
@@ -57,8 +57,6 @@ class C:
hChapterDoc = "000000000000e"
hSceneDoc = "000000000000f"
# END Class C
def cmpFiles(
fileOne: str | Path, fileTwo: str | Path,
@@ -148,9 +146,9 @@ def buildTestProject(obj: object, projPath: Path) -> None:
"""Build a standard test project in projPath using the project
object as the parent.
"""
from novelwriter.core.project import NWProject
from novelwriter.enum import nwItemClass
from novelwriter.guimain import GuiMain
from novelwriter.core.project import NWProject
if isinstance(obj, NWProject):
nwGUI = None
@@ -220,5 +218,3 @@ class SimpleDialog(QDialog):
@property
def widget(self) -> QWidget:
return self._widget
# END Class TestDialog