Документ взят из кэша поисковой машины. Адрес оригинального документа : 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
Кодировка:

Поисковые слова: р р с с р с р р р р с р р р р р р п п р
lsst.tcc: tcc.base.testUtils Namespace Reference
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
tcc.base.testUtils Namespace Reference

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
 

Function Documentation

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.

Parameters
[in]filePathpath of file being tested (e.g. file), or None:
  • If supplied must be in subdir tests of your package (NOT deeper in the hierarchy) in order to determine where the log file should go.
  • If None, no log file is created.

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.

Variable Documentation

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.