[tracker/rss-enclosures] functional-tests: Ignore Common* and *Template test classes in tests.xml



commit bc1d4982595f73efb7c1de342e1a259cef956744
Author: Ivan Frade <ivan frade nokia com>
Date:   Wed Oct 13 20:26:23 2010 +0300

    functional-tests: Ignore Common* and *Template test classes in tests.xml
    
    Those classes shouldn't be run in the tests. Are there to organize the code
    but don't contain useful tests by themselves.

 tests/functional-tests/create-tests-xml.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/create-tests-xml.py b/tests/functional-tests/create-tests-xml.py
index 81088dd..f48ac2b 100755
--- a/tests/functional-tests/create-tests-xml.py
+++ b/tests/functional-tests/create-tests-xml.py
@@ -67,6 +67,9 @@ def print_as_xml (filename):
     print "        <description>%s</description>" % (__get_doc (module))
     print PRE_STEPS
     for name, obj in inspect.getmembers (module):
+        if name.startswith ("Common") or name.endswith ("Template"):
+            continue
+        
         if (inspect.isclass (obj)
             and obj.__module__ == filename[:-3]):
             script = os.path.join (cfg.DATADIR, "tracker-tests", filename)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]