Public Member Functions | |
def | __init__ |
def | funcdesc |
def | funcSetup |
def | funcTeardown |
def | getFuncTest |
def | getUnitTest |
Public Attributes | |
testname | |
workdir | |
scriptdir | |
datadir | |
dataFiles |
Definition at line 40 of file testwrapper.py.
def testwrapper.UnitTest.__init__ | ( | self, | |
testname = '' |
|||
) |
Take the name of a test file (without .py), wrap it and run
Definition at line 41 of file testwrapper.py.
def testwrapper.UnitTest.funcdesc | ( | self | ) |
Name of test for FunctionTestCase
Definition at line 49 of file testwrapper.py.
References testwrapper.UnitTest.testname.
Referenced by testwrapper.UnitTest.getFuncTest().
def testwrapper.UnitTest.funcSetup | ( | self | ) |
Copy data files to local working directory
Definition at line 53 of file testwrapper.py.
References testwrapper.UnitTest.datadir, testwrapper.UnitTest.dataFiles, __casac__.calplot.calplot.locatedata(), __casac__.tableplot.tableplot.locatedata(), testbase.testbase.locatedata(), __casac__.msplot.msplot.locatedata(), regressframe.regressionframe.workdir, and testwrapper.UnitTest.workdir.
Referenced by testwrapper.UnitTest.getFuncTest().
def testwrapper.UnitTest.funcTeardown | ( | self | ) |
Remove data files from working directory
Definition at line 68 of file testwrapper.py.
References testwrapper.UnitTest.dataFiles, regressframe.regressionframe.workdir, and testwrapper.UnitTest.workdir.
Referenced by testwrapper.UnitTest.getFuncTest().
def testwrapper.UnitTest.getFuncTest | ( | self | ) |
Definition at line 78 of file testwrapper.py.
References testwrapper.UnitTest.dataFiles, testwrapper.UnitTest.funcdesc(), testwrapper.UnitTest.funcSetup(), testwrapper.UnitTest.funcTeardown(), testbase.testbase.getTest(), testwrapper.UnitTest.scriptdir, testbase.testbase.searchscript(), testwrapper.UnitTest.testname, regressframe.regressionframe.workdir, and testwrapper.UnitTest.workdir.
def testwrapper.UnitTest.getUnitTest | ( | self, | |
list = [] |
|||
) |
Set up a unit test script to run wit nose
Definition at line 109 of file testwrapper.py.
References casapy.c, testbase.testbase.getTest(), testwrapper.UnitTest.scriptdir, testbase.testbase.searchscript(), testwrapper.UnitTest.testname, regressframe.regressionframe.workdir, and testwrapper.UnitTest.workdir.
Definition at line 46 of file testwrapper.py.
Referenced by testwrapper.UnitTest.funcSetup().
Definition at line 47 of file testwrapper.py.
Referenced by testwrapper.UnitTest.funcSetup(), testwrapper.UnitTest.funcTeardown(), and testwrapper.UnitTest.getFuncTest().
Reimplemented in testwrapper.ExecTest.
Definition at line 45 of file testwrapper.py.
Referenced by testwrapper.UnitTest.getFuncTest(), and testwrapper.UnitTest.getUnitTest().
Definition at line 43 of file testwrapper.py.
Referenced by testwrapper.UnitTest.funcdesc(), testwrapper.UnitTest.getFuncTest(), and testwrapper.UnitTest.getUnitTest().
Reimplemented in testwrapper.ExecTest.
Definition at line 44 of file testwrapper.py.
Referenced by testwrapper.UnitTest.funcSetup(), testwrapper.UnitTest.funcTeardown(), testwrapper.UnitTest.getFuncTest(), and testwrapper.UnitTest.getUnitTest().