|
@@ -4,13 +4,14 @@ Created on Tue Jun 24 09:43:53 2014
|
|
|
|
|
|
@author: pietro
|
|
@author: pietro
|
|
"""
|
|
"""
|
|
|
|
+from fnmatch import fnmatch
|
|
from grass.gunittest import TestCase, test
|
|
from grass.gunittest import TestCase, test
|
|
|
|
|
|
from grass.script.core import get_commands
|
|
from grass.script.core import get_commands
|
|
from grass.pygrass.modules.interface import Module
|
|
from grass.pygrass.modules.interface import Module
|
|
|
|
|
|
|
|
|
|
-SKIP = []
|
|
|
|
|
|
+SKIP = ["g.parser", ]
|
|
|
|
|
|
|
|
|
|
class TestModulesMeta(type):
|
|
class TestModulesMeta(type):
|
|
@@ -21,7 +22,8 @@ class TestModulesMeta(type):
|
|
Module(cmd)
|
|
Module(cmd)
|
|
return test
|
|
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:
|
|
for cmd in cmds:
|
|
test_name = "test__%s" % cmd.replace('.', '_')
|
|
test_name = "test__%s" % cmd.replace('.', '_')
|
|
dict[test_name] = gen_test(cmd)
|
|
dict[test_name] = gen_test(cmd)
|