music21.test.commonTest¶
Things that are common to testing...
ModuleGather¶
-
class
music21.test.commonTest.
ModuleGather
(useExtended=False, autoWalk=True)¶ Utility class for gathering and importing all modules in the music21 package. Puts them in self.modulePaths.
>>> from music21.test import commonTest >>> mg = commonTest.ModuleGather(useExtended=True) >>> print mg.modulePaths[0] D:\Web\eclipse\music21base\music21\volume.py
ModuleGather
methods
-
ModuleGather.
getModule
(fp, restoreEnvironmentDefaults=False)¶ gets one module object from the file path
-
ModuleGather.
getModuleWithoutImp
(fp, restoreEnvironmentDefaults=False)¶ gets one module object from the file path without using Imp
-
ModuleGather.
load
(restoreEnvironmentDefaults=False)¶ Return a list of module objects that are not in the skip list.
N.B. the list is a list of actual module objects not names, therefore cannot be pickled.
-
ModuleGather.
walk
()¶ Get all the modules in reverse order, storing them in self.modulePaths
Music21TestRunner¶
-
class
music21.test.commonTest.
Music21TestRunner
(stream=None, descriptions=True, verbosity=1, failfast=False, buffer=False, resultclass=None, warnings=None, *, tb_locals=False)¶
Music21TestRunner
methods
-
Music21TestRunner.
run
(test)¶ Run the given test case or test suite.