Code: Select all
import Test, femtest.app.test_object
Test.runTestsFromModule(femtest.app.test_object)
Code: Select all
>>> 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: 49 != 50
======================================================================
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 1274, in test_femobjects_derivedfromfem
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 45 != 46
======================================================================
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 1517, in test_femobjects_derivedfromstd
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 45 != 46
======================================================================
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 574, in test_femobjects_isoftype
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 45 != 46
======================================================================
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 375, in test_femobjects_type
self.assertEqual(len(doc.Objects), testtools.get_defmake_count(False))
AssertionError: 45 != 46
----------------------------------------------------------------------
Ran 7 tests in 1.251s
FAILED (failures=5)
>>> # App.setActiveDocument("TestObjectCreate")