do not know, if this is rather a python question or freecad one as I need it for a freecad macro.
Consider for example this line in a tested or Test-function:
Code: Select all
Import.export([FreeCAD.activeDocument().getObject(compound.Name)], step1)
Now I do not know how to handle this console streams, at all. What would be a best practice to have it logged and how to keep the the console free, when I trigger the unittest from the command line often.Reading STEP file......
such as
Code: Select all
python -m unittest Testpointtopost.ReportTestCase.test_prepares_csv_visu_from_step_filelist
Tia