FEM: unit tests, rename test tools to utils to distinguish between test modules
This commit is contained in:
committed by
Yorik van Havre
parent
6cdc0769e4
commit
6b08499c76
@@ -121,7 +121,7 @@ SET(FemTests_SRCS
|
||||
femtest/testobject.py
|
||||
femtest/testresult.py
|
||||
femtest/testsolverframework.py
|
||||
femtest/testtools.py
|
||||
femtest/utilstest.py
|
||||
)
|
||||
|
||||
SET(FemTestsFiles_SRCS
|
||||
|
||||
@@ -28,8 +28,8 @@ from femtools import ccxtools
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import unittest
|
||||
from . import testtools
|
||||
from .testtools import fcc_print
|
||||
from . import utilstest as testtools
|
||||
from .utilstest import fcc_print
|
||||
|
||||
|
||||
class TestCcxTools(unittest.TestCase):
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import unittest
|
||||
from . import testtools
|
||||
from .testtools import fcc_print
|
||||
from . import utilstest as testtools
|
||||
from .utilstest import fcc_print
|
||||
|
||||
|
||||
class TestFemCommon(unittest.TestCase):
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
import Fem
|
||||
import FreeCAD
|
||||
import unittest
|
||||
from . import testtools
|
||||
from .testtools import fcc_print
|
||||
from . import utilstest as testtools
|
||||
from .utilstest import fcc_print
|
||||
|
||||
|
||||
class TestMeshCommon(unittest.TestCase):
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import unittest
|
||||
from . import testtools
|
||||
from .testtools import fcc_print
|
||||
from . import utilstest as testtools
|
||||
from .utilstest import fcc_print
|
||||
|
||||
|
||||
class TestObjectCreate(unittest.TestCase):
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
|
||||
import FreeCAD
|
||||
import unittest
|
||||
from . import testtools
|
||||
from .testtools import fcc_print
|
||||
from . import utilstest as testtools
|
||||
from .utilstest import fcc_print
|
||||
|
||||
|
||||
class TestResult(unittest.TestCase):
|
||||
|
||||
@@ -27,8 +27,8 @@ import FreeCAD
|
||||
import ObjectsFem
|
||||
import femsolver.run
|
||||
import unittest
|
||||
from . import testtools
|
||||
from .testtools import fcc_print
|
||||
from . import utilstest as testtools
|
||||
from .utilstest import fcc_print
|
||||
|
||||
|
||||
class TestSolverFrameWork(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user