Code: Select all
import Test, femtest.app.test_object
Test.runTestsFromModule(femtest.app.test_object)
Code: Select all
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>>
>>> import Test, femtest.app.test_object
>>> Test.runTestsFromModule(femtest.app.test_object)
test_00print (femtest.app.test_object.TestObjectCreate) ... ok
test_femobjects_make (femtest.app.test_object.TestObjectCreate) ... FAIL
test_00print (femtest.app.test_object.TestObjectType) ... ok
test_femobjects_derivedfromfem (femtest.app.test_object.TestObjectType) ... FAIL
test_femobjects_derivedfromstd (femtest.app.test_object.TestObjectType) ... FAIL
test_femobjects_isoftype (femtest.app.test_object.TestObjectType) ... FAIL
test_femobjects_type (femtest.app.test_object.TestObjectType) ... FAIL
======================================================================
FAIL: test_femobjects_make (femtest.app.test_object.TestObjectCreate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Fem/femtest/app/test_object.py", line 134, in test_femobjects_make
self.assertEqual(len(analysis.Group), count_defmake - 1)
AssertionError: 50 != 51
======================================================================
FAIL: test_femobjects_derivedfromfem (femtest.app.test_object.TestObjectType)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Fem/femtest/app/test_object.py", line 1290, in test_femobjects_derivedfromfem
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 46 != 47
======================================================================
FAIL: test_femobjects_derivedfromstd (femtest.app.test_object.TestObjectType)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Fem/femtest/app/test_object.py", line 1538, in test_femobjects_derivedfromstd
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 46 != 47
======================================================================
FAIL: test_femobjects_isoftype (femtest.app.test_object.TestObjectType)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Fem/femtest/app/test_object.py", line 575, in test_femobjects_isoftype
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 46 != 47
======================================================================
FAIL: test_femobjects_type (femtest.app.test_object.TestObjectType)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Fem/femtest/app/test_object.py", line 372, in test_femobjects_type
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 46 != 47
----------------------------------------------------------------------
Ran 7 tests in 0.769s
FAILED (failures=5)
this will give you an idea what is needed:
https://github.com/FreeCAD/FreeCAD/comm ... 0e1280a097