common.test package

Submodules

common.test.PersistentTest module

Created on Oct 12, 2015

@author: atsygan

class common.test.PersistentTest.ClsNameStartTest64chartest64chartest64chartest64chartest64charCoaddedRegriddedFrameParametersClsNameEnd

Bases: common.database.DBMain.DBObject

int_attribute
object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

class common.test.PersistentTest.DATACUBE_FINAL_astrometry

Bases: common.database.DBMain.DBObject

object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

pixtable_astrometry
class common.test.PersistentTest.DBPosgreSQL_ddlcomment(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_ddlcomment_TestA()
test_ddlcomment_TestB()
test_ddlcomment_TestC()
class common.test.PersistentTest.DBPosgreSQL_ddlnested(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_ddlnested_TestA()
test_ddlnested_TestB()
test_ddlnested_TestC()
test_ddlnested_exception_tablename()
class common.test.PersistentTest.DBPosgreSQL_ddlnestedcomment(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_ddlnestedcomment_TestA()
test_ddlnestedcomment_TestB()
test_ddlnestedcomment_TestC()
class common.test.PersistentTest.DBPosgreSQL_ddltable(methodName='runTest')

Bases: unittest.case.TestCase

test_ddltable_TestA()
test_ddltable_TestB()
test_ddltable_TestC()
class common.test.PersistentTest.DBPosgreSQL_desc_list_properties_ddl(methodName='runTest')

Bases: unittest.case.TestCase

test_date_desc_list_property()
test_float_desc_list_property()
test_int_desc_list_property()
test_long_desc_list_property()
test_str_desc_list_property()
class common.test.PersistentTest.DBPosgreSQL_desc_properties_ddl(methodName='runTest')

Bases: unittest.case.TestCase

test_date_desc_property()
test_float_desc_property()
test_int_desc_property()
test_long_desc_property()
test_str_desc_property()

Bases: unittest.case.TestCase

class common.test.PersistentTest.DBPosgreSQL_longnames(methodName='runTest')

Bases: unittest.case.TestCase

test_ddltable_long_tablecolumnname()
test_ddltable_long_tablename()
test_dmlname_exception_tablecolumnname()
test_dmlname_long_tablecolumnname()
test_dmlname_long_tablename()
test_exception_viewcolumnname()
test_long_viewcolumnname()
test_long_viewname()
class common.test.PersistentTest.MainTestClass

Bases: object

TestCases()
class common.test.PersistentTest.PersistentRefTest

Bases: common.database.DBMain.DBObject

object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

setTestIDref(p_Obj)
setTestRefData(p_value)
testIDref

reference ID for the test data

testRefData

reference string test data

class common.test.PersistentTest.PersistentTest

Bases: common.database.DBMain.DBObject

classdocs

object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

setTestData(p_value)
setTestID(p_value)
setTestnumberID(p_value)
testData

test string data

testID

test ref

testnumberID

test number

class common.test.PersistentTest.TestA

Bases: common.database.DBMain.DBObject

date_attribute
date_list
float_attribute
float_list
int_attribute
int_list
long_attribute
long_list
object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

objectlist_attribute

objectlist_property

str_attribute
str_list
class common.test.PersistentTest.TestB

Bases: common.database.DBMain.DBObject

link_property

link_list_property

object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

self_link_property

class common.test.PersistentTest.TestC

Bases: common.test.PersistentTest.TestA

date_attribute
date_list
float_attribute
float_list
int_attribute
int_list
long_attribute
long_list
object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

objectlist_attribute

objectlist_property

str_attribute
str_list
class common.test.PersistentTest.TestD

Bases: common.database.DBMain.DBObject

ESOCOLSTART_QC_WAVECAL_SLICEj_LINES_FWHM_STDEV_TEST64CHARTEST64CHARTEST64CHARTEST64CHARTEST64CHARTEST64CHARTEST64CHAR_ESOCOLEND
MAXIMUMCOLSTART_TEST64CHARTEST64CHARTEST64CHARTEST64CHARTEST64CHARTEST64CHARTEST64CHARMAXIMUM_HOTPIXELCOUNT_DIFFERENCE_MAXIMUMCOLEND
object_id

The object identifier

The object identifier is an attribute shared by all persistent instances. It is the prime key, by which object identity is established

class common.test.PersistentTest.Tests

Bases: object

runpersistenttests()
rununittests()

common.test.multicasetest module

class common.test.multicasetest.TestMultipleCases(methodName='runTest')

Bases: unittest.case.TestCase

A class whose instances test multiple cases.

By default, the test code itself should be placed in a method named ‘runTest’.

If the fixture may be used for many test cases, create as many test methods as are needed. When instantiating such a TestCase subclass, specify in the constructor arguments the name of the test method that the instance is to execute.

Test authors should subclass TestCase for their own tests. Construction and deconstruction of the test’s environment (‘fixture’) can be implemented by overriding the ‘setUp’ and ‘tearDown’ methods respectively.

Instances should define an iterable atribute ‘cases’. The test methods will be called once for each item in self.cases. Each case may generate its own failure or error. Therefore each test method may generate multiple failures/errors. A test method is deemed to have passed succesfully if none of the cases genereated an error

The cases attribute can be generated at class definition time, at initialization time or in the setUp method

If it is necessary to override the __init__ method, the base class __init__ method must always be called. It is important that subclasses should not change the signature of their __init__ method, since instances of the classes are instantiated automatically by parts of the framework in order to be run. Hence, the __init__ method should not be changed to pass a list of cases to the instance

cases = None
shortDescription()

return short description of the test, per error case this is stored in self._testMethodErrors

Module contents