Draft: Introduce base classes for Draft tests

To avoid code duplication.
This commit is contained in:
Roy-043
2025-01-03 16:51:42 +01:00
parent 7b548bee7f
commit 0bc9737ca6
14 changed files with 157 additions and 345 deletions

View File

@@ -1,6 +1,7 @@
# ***************************************************************************
# * Copyright (c) 2013 Yorik van Havre <yorik@uncreated.net> *
# * Copyright (c) 2019 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> *
# * Copyright (c) 2025 FreeCAD Project Association *
# * *
# * This file is part of the FreeCAD CAx development system. *
# * *
@@ -28,23 +29,13 @@
## \addtogroup drafttests
# @{
import unittest
import drafttests.auxiliary as aux
from drafttests import test_base
class DraftGuiImport(unittest.TestCase):
class DraftGuiImport(test_base.DraftTestCaseNoDoc):
"""Import the Draft graphical modules."""
def setUp(self):
"""Draw the header.
This is executed before every test.
No document is needed to test the import of modules so no document
is created, and `tearDown` isn't defined.
"""
aux.draw_header()
def test_import_gui_draftgui(self):
"""Import Draft TaskView GUI tools."""
module = "DraftGui"