In einer windows shell laufen die unittests fehler frei durch, aber innerhalb von Allplan, und das ist doch wichtig, oder ?!? hab ich einen Failure ...
PS. wenn sys.exit(RET) in AllTests.py auskommentiert wird, lassen sich die UnitTests auch mit einer pyp-datei direkt in Allplan ausführen. So langsam blicke ich durch ...
Wenn ich dies mache habe ich einen Failure im UnitTest. Output anbei.
Script = UnitTests\unittests
Load unittests.py
['C:\\Program Files\\Nemetschek\\Allplan\\Prg\\Python', 'C:\\Program Files\\Nemetschek\\Allplan\\Prg\\Python\\Lib', 'C:\\Program Files\\Nemetschek\\Allplan\\Prg
\\Python\\Lib\\site-packages', 'C:\\Program Files\\Nemetschek\\Allplan\\Prg\\Python\\DLLs', '\\\\HEASRV01\\Daten\\NEM\\Allplan\\Prj\\zzz--PythonParts.prj\\Pytho
nPartsScripts', '\\\\HEASRV01\\Daten\\NEM\\Allplan\\Std\\PythonPartsScripts', 'C:\\ProgramData\\Nemetschek\\Allplan\\2016\\Etc\\PythonPartsScripts', 'C:\\Progra
mData\\Nemetschek\\Allplan\\2016\\Etc\\PythonPartsScripts\\GeneralScripts', 'C:\\Program Files\\Nemetschek\\Allplan\\Prg', '', 'P:/Hahnebach/00--Daten--healy_bh
b/BIM--Allplan/PythonParts/NemAll_Python_Geometry_UnitTests', 'C:/Program Files/Nemetschek/Allplan/Prg']
3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
........................F.......................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
................................................................................................................................................................
........................................................................
======================================================================
FAIL: test_point2d_not_equal (TestComparison.TestComparisonEqualMethods1)
----------------------------------------------------------------------
Traceback (most recent call last):
File "P:/Hahnebach/00--Daten--healy_bhb/BIM--Allplan/PythonParts/NemAll_Python_Geometry_UnitTests\TestComparison.py", line 51, in test_point2d_not_equal
self.assertFalse(AllplanGeo.Comparison.Equal(point1, point2, 0.01))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 1992 tests in 0.380s
FAILED (failures=1)
Script = UnitTests\unittests