Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.apo.nmsu.edu/Telescopes/TCC/html/namespacetcc_1_1base_1_1test_utils.html
Дата изменения: Tue Sep 15 02:25:40 2015 Дата индексирования: Sun Apr 10 04:52:02 2016 Кодировка: Поисковые слова: dark energy |
lsst.tcc
1.2.2-3-g89ecb63
|
Functions | |
def | getTestDir |
Return path to unit tests. More... | |
def | setEnviron |
Set TCC environment variables appropriately for running unit tests. More... | |
def | makeEarthPred |
Create a new earth prediction file, so the TCC can be started. More... | |
def | init |
Prepare for a unit test to run that starts an actor. More... | |
Variables | |
int | _MaxEarthAgeSec = 3600 |
_ModeRWRWR = stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IWGRP|stat.S_IROTH | |
float | _DaysPerSec = 1.0 |
def tcc.base.testUtils.getTestDir | ( | ) |
Return path to unit tests.
Definition at line 20 of file testUtils.py.
def tcc.base.testUtils.init | ( | filePath = None | ) |
Prepare for a unit test to run that starts an actor.
[in] | filePath | path of file being tested (e.g. file), or None:
|
Definition at line 83 of file testUtils.py.
def tcc.base.testUtils.makeEarthPred | ( | ) |
Create a new earth prediction file, so the TCC can be started.
The file is: <getTestDir()>/data/earthpred.dat and any existing copy is overwritten.
Note that this intentionally does not use os.environ["TCC_DATA_DIR"], for fear of accidentally overwriting the real earth orientation prediction file.
Definition at line 31 of file testUtils.py.
def tcc.base.testUtils.setEnviron | ( | ) |
Set TCC environment variables appropriately for running unit tests.
Definition at line 25 of file testUtils.py.
float tcc.base.testUtils._DaysPerSec = 1.0 |
Definition at line 18 of file testUtils.py.
int tcc.base.testUtils._MaxEarthAgeSec = 3600 |
Definition at line 16 of file testUtils.py.
tcc.base.testUtils._ModeRWRWR = stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IWGRP|stat.S_IROTH |
Definition at line 17 of file testUtils.py.