Draft: Introduce base classes for Draft tests
To avoid code duplication.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user