Test: Fix header uniformity, whitespace, doxygen headers

This commit is contained in:
luz paz
2020-11-17 07:31:10 -05:00
committed by wwmayer
parent 64fb52e4c2
commit 31c0099a59
20 changed files with 280 additions and 167 deletions

View File

@@ -1,5 +1,5 @@
#***************************************************************************
#* (c) Juergen Riegel (juergen.riegel@web.de) 2004 *
#* Copyright (c) 2004 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -19,7 +19,6 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Juergen Riegel 2004 *
#***************************************************************************/
import FreeCAD, os, unittest, tempfile, math

View File

@@ -1,5 +1,5 @@
#***************************************************************************
#* (c) Juergen Riegel (juergen.riegel@web.de) 2003 *
#* Copyright (c) 2003 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -19,7 +19,6 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Juergen Riegel 2003 *
#***************************************************************************/
import FreeCAD, os, unittest, tempfile

View File

@@ -1,9 +1,5 @@
# Qt Unit test module
# (c) 2006 Werner Mayer
#
#***************************************************************************
#* (c) Werner Mayer <werner.wm.mayer@gmx.de> 2006 *
#* Copyright (c) 2006 Werner Mayer <werner.wm.mayer@gmx.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -22,10 +18,10 @@
#* License along with FreeCAD; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Werner Mayer 2006 *
#***************************************************************************/
# Qt Unit test module
__author__ = "Werner Mayer (werner.wm.mayer@gmx.de)"
import string

View File

@@ -1,8 +1,5 @@
# FreeCAD init script of the test module
# (c) 2001 Juergen Riegel
#***************************************************************************
#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 *
#* Copyright (c) 2001,2002 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -22,9 +19,10 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Juergen Riegel 2002 *
#***************************************************************************/
# FreeCAD init script of the test module
# Base system tests
FreeCAD.__unit_test__ += [ "BaseTests",
"UnitTests",

View File

@@ -1,9 +1,5 @@
# Test gui init module
# (c) 2003 Juergen Riegel
#
#***************************************************************************
#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 *
#* Copyright (c) 2002,2003 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -23,10 +19,9 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Juergen Riegel 2002 *
#***************************************************************************/
# Test gui init module
class TestWorkbench ( Workbench ):
"Test workbench object"

View File

@@ -1,9 +1,5 @@
# Menu test module
# (c) 2005 Werner Mayer
#
#***************************************************************************
#* (c) Werner Mayer <werner.wm.mayer@gmx.de> 2005 *
#* Copyright (c) 2005 Werner Mayer <werner.wm.mayer@gmx.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -26,6 +22,8 @@
#* Werner Mayer 2005 *
#***************************************************************************/
# Menu test module
import FreeCAD, os, unittest, FreeCADGui

View File

@@ -1,5 +1,5 @@
#***************************************************************************
#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 *
#* Copyright (c) 2002 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -19,7 +19,6 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Juergen Riegel 2002 *
#***************************************************************************/
import FreeCAD

View File

@@ -1,10 +1,5 @@
# FreeCAD Part module
# (c) 2001 Juergen Riegel
#
# Part design module
#***************************************************************************
#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 *
#* Copyright (c) 2001,2002 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -24,9 +19,12 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Juergen Riegel 2002 *
#***************************************************************************/
# FreeCAD Part module
#
# Part design module
# import FreeCAD modules
import FreeCAD,FreeCADGui
# import the App Test module

View File

@@ -1,3 +1,27 @@
#***************************************************************************
#* Copyright (c) 2018 looooo <sppedflyer@gmail.com> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
#* 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. *
#* *
#* FreeCAD 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 FreeCAD; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#***************************************************************************/
import sys
import os
import ast

View File

@@ -1,5 +1,26 @@
# -*- coding: utf-8 -*-
# (c) Juergen Riegel (juergen.riegel@web.de) 2007 LGPL
#***************************************************************************
#* Copyright (c) 2007 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
#* 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. *
#* *
#* FreeCAD 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 FreeCAD; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#***************************************************************************/
# Open and edit only in UTF-8 !!!!!!

View File

@@ -1,4 +1,26 @@
# (c) Juergen Riegel (juergen.riegel@web.de) 20010 LGPL
# -*- coding: utf-8 -*-
#***************************************************************************
#* Copyright (c) 2010 Juergen Riegel <juergen.riegel@web.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
#* 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. *
#* *
#* FreeCAD 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 FreeCAD; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#***************************************************************************/
import FreeCAD
import unittest

View File

@@ -1,9 +1,5 @@
# Workbench test module
# (c) 2006 Werner Mayer
#
#***************************************************************************
#* (c) Werner Mayer <werner.wm.mayer@gmx.de> 2006 *
#* Copyright (c) 2006 Werner Mayer <werner.wm.mayer@gmx.de> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
@@ -23,9 +19,10 @@
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#* Werner Mayer 2006 *
#***************************************************************************/
# Workbench test module
import FreeCAD, FreeCADGui, os, unittest
class WorkbenchTestCase(unittest.TestCase):

View File

@@ -1,5 +1,8 @@
/** \defgroup TEST Test
* \ingroup CWORKBENCHES
* \brief Test framework of FreeCAD
See \ref src/Mod/Draft/draft.dox for example on how to populate a .dox file.
*/

View File

@@ -1,7 +1,29 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#***************************************************************************
#* Copyright (c) 2013 WandererFan <wandererfan@gmail.com> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
#* 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. *
#* *
#* FreeCAD 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 FreeCAD; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#***************************************************************************/
# tester for Draft makePathArray - shapes on a path - without subelements (see testPathArraySel.py)
# Tester for Draft makePathArray - shapes on a path - without subelements (see testPathArraySel.py)
# Usage: in FC gui, select a "shape" document object (sphere, box, etc) (!!select in
# tree, not document view!!), then a "wire" document object (Wire, Circle, Rectangle,
# DWire, etc) then run this macro.
@@ -30,6 +52,3 @@ pathsubs = []
o = Draft.makePathArray(base,path,items,centretrans,orient,pathsubs) # test with non-defaults
print("testPathArray ended")

View File

@@ -1,7 +1,29 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#***************************************************************************
#* Copyright (c) 2013 WandererFan <wandererfan@gmail.com> *
#* *
#* This file is part of the FreeCAD CAx development system. *
#* *
#* 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. *
#* *
#* FreeCAD 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 FreeCAD; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#***************************************************************************/
# tester for Draft makePathArray - shapes on a path - with selected subobjects
# Tester for Draft makePathArray - shapes on a path - with selected subobjects
# Usage: in FC gui, select a "shape" document object (sphere, box, etc) (!select in
# tree, not document view!!), then select edges from the "wire" object.

View File

@@ -1,5 +1,28 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ***************************************************************************
# * Copyright (c) 2013 WandererFan <wandererfan@gmail.com> *
# * *
# * This file is part of the FreeCAD CAx development system. *
# * *
# * 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 *
# * *
# ***************************************************************************
# tester for Part.makeWireString