[GRASS-SVN] r61511 - grass/trunk/lib/python/pygrass/modules/interface/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 4 05:44:03 PDT 2014


Author: zarch
Date: 2014-08-04 05:44:03 -0700 (Mon, 04 Aug 2014)
New Revision: 61511

Modified:
   grass/trunk/lib/python/pygrass/modules/interface/testsuite/test_modules.py
Log:
pygrass: exclude modules: g.parser and g.gui.* from the testsuite

Modified: grass/trunk/lib/python/pygrass/modules/interface/testsuite/test_modules.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/testsuite/test_modules.py	2014-08-04 10:10:22 UTC (rev 61510)
+++ grass/trunk/lib/python/pygrass/modules/interface/testsuite/test_modules.py	2014-08-04 12:44:03 UTC (rev 61511)
@@ -4,13 +4,14 @@
 
 @author: pietro
 """
+from fnmatch import fnmatch
 from grass.gunittest import TestCase, test
 
 from grass.script.core import get_commands
 from grass.pygrass.modules.interface import Module
 
 
-SKIP = []
+SKIP = ["g.parser", ]
 
 
 class TestModulesMeta(type):
@@ -21,7 +22,8 @@
                 Module(cmd)
             return test
 
-        cmds = [c for c in sorted(list(get_commands()[0])) if c not in SKIP]
+        cmds = [c for c in sorted(list(get_commands()[0]))
+                if c not in SKIP and not fnmatch(c, "g.gui.*")]
         for cmd in cmds:
             test_name = "test__%s" % cmd.replace('.', '_')
             dict[test_name] = gen_test(cmd)



More information about the grass-commit mailing list