Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft: unit tests registered in Init.py
This means that now the unit tests will run from the console mode when using ``` FreeCADCmd -t 0 FreeCAD --console -t 0 ``` This will allow us to catch errors more easily, as we separate better the behavior of non-GUI and GUI-required modules. Also small spacing fixes and position of the license.
- Loading branch information
1 parent
7d8ab17
commit c55a5a9
Showing
3 changed files
with
43 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,36 @@ | ||
#*************************************************************************** | ||
#* Copyright (c) 2009 Yorik van Havre <yorik@uncreated.net> * | ||
#* * | ||
#* This program is free software; you can redistribute it and/or modify * | ||
#* it under the terms of the GNU Lesser General Public License (LGPL) * | ||
#* as published by the Free Software Foundation; either version 2 of * | ||
#* the License, or (at your option) any later version. * | ||
#* for detail see the LICENCE text file. * | ||
#* * | ||
#* This program is distributed in the hope that it will be useful, * | ||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
#* GNU Library General Public License for more details. * | ||
#* * | ||
#* You should have received a copy of the GNU Library General Public * | ||
#* License along with this program; if not, write to the Free Software * | ||
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * | ||
#* USA * | ||
#* * | ||
#*************************************************************************** | ||
# *************************************************************************** | ||
# * Copyright (c) 2009 Yorik van Havre <yorik@uncreated.net> * | ||
# * * | ||
# * This program is free software; you can redistribute it and/or modify * | ||
# * it under the terms of the GNU Lesser General Public License (LGPL) * | ||
# * as published by the Free Software Foundation; either version 2 of * | ||
# * the License, or (at your option) any later version. * | ||
# * for detail see the LICENCE text file. * | ||
# * * | ||
# * This program is distributed in the hope that it will be useful, * | ||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
# * GNU Library General Public License for more details. * | ||
# * * | ||
# * You should have received a copy of the GNU Library General Public * | ||
# * License along with this program; if not, write to the Free Software * | ||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * | ||
# * USA * | ||
# * * | ||
# *************************************************************************** | ||
"""Initialization file of the workbench, non-GUI.""" | ||
|
||
import FreeCAD as App | ||
|
||
# add Import/Export types | ||
App.addImportType("Autodesk DXF 2D (*.dxf)","importDXF") | ||
App.addImportType("SVG as geometry (*.svg)","importSVG") | ||
App.addImportType("Open CAD Format (*.oca *.gcad)","importOCA") | ||
App.addImportType("Common airfoil data (*.dat)","importAirfoilDAT") | ||
App.addExportType("Autodesk DXF 2D (*.dxf)","importDXF") | ||
App.addExportType("Flattened SVG (*.svg)","importSVG") | ||
App.addExportType("Open CAD Format (*.oca)","importOCA") | ||
App.addImportType("Autodesk DWG 2D (*.dwg)","importDWG") | ||
App.addExportType("Autodesk DWG 2D (*.dwg)","importDWG") | ||
App.addImportType("Autodesk DXF 2D (*.dxf)", "importDXF") | ||
App.addImportType("SVG as geometry (*.svg)", "importSVG") | ||
App.addImportType("Open CAD Format (*.oca *.gcad)", "importOCA") | ||
App.addImportType("Common airfoil data (*.dat)", "importAirfoilDAT") | ||
App.addExportType("Autodesk DXF 2D (*.dxf)", "importDXF") | ||
App.addExportType("Flattened SVG (*.svg)", "importSVG") | ||
App.addExportType("Open CAD Format (*.oca)", "importOCA") | ||
App.addImportType("Autodesk DWG 2D (*.dwg)", "importDWG") | ||
App.addExportType("Autodesk DWG 2D (*.dwg)", "importDWG") | ||
|
||
App.__unit_test__ += ["TestDraft"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters