astro.test.database package

Submodules

astro.test.database.DBOracle_test module

class astro.test.database.DBOracle_test.CoaddedRegriddedFrameParameters

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 astro.test.database.DBOracle_test.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 astro.test.database.DBOracle_test.DBOracle_ddlcomment(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_ddlcomment_TestA()
test_ddlcomment_TestB()
test_ddlcomment_TestC()
class astro.test.database.DBOracle_test.DBOracle_ddlnested(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_ddlnested_TestA()
test_ddlnested_TestB()
test_ddlnested_TestC()
test_ddlnested_exception_tablename()
class astro.test.database.DBOracle_test.DBOracle_ddlnestedcomment(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_ddlnestedcomment_TestA()
test_ddlnestedcomment_TestB()
test_ddlnestedcomment_TestC()
class astro.test.database.DBOracle_test.DBOracle_ddltable(methodName='runTest')

Bases: unittest.case.TestCase

test_ddltable_TestA()
test_ddltable_TestB()
test_ddltable_TestC()
class astro.test.database.DBOracle_test.DBOracle_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 astro.test.database.DBOracle_test.DBOracle_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 astro.test.database.DBOracle_test.DBOracle_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 astro.test.database.DBOracle_test.DBOracle_select(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_select_TestA()
class astro.test.database.DBOracle_test.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 astro.test.database.DBOracle_test.TestB

Bases: common.database.DBMain.DBObject

inline_attribute

inline_property

inline_list

inline_property

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 astro.test.database.DBOracle_test.TestC

Bases: astro.test.database.DBOracle_test.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 astro.test.database.DBOracle_test.TestD

Bases: common.database.DBMain.DBObject

ESO_QC_WAVECAL_SLICEj_LINES_FWHM_STDEV
MAXIMUM_HOTPIXELCOUNT_DIFFERENCE
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

astro.test.database.DBSelect_test module

class astro.test.database.DBSelect_test.test_DBSelect_with_oracle(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_current_mydb_only()
test_max()
test_min()
test_order_by()
test_order_by_desc()
test_privileges_only()
test_project_favourite()
test_project_only()
test_public_data_only()
test_public_project_only()
test_select_all()
test_user_only()
test_vo_only()

astro.test.database.DataObject_test module

Tests for the DataObject Class

astro.test.database.Oracle_dependency_test module

Check that all the settings for the Oracle database are correct.

astro.test.database.Oracle_dependency_test.find_tablespace(tablespacename)
astro.test.database.Oracle_dependency_test.get_global_name()
astro.test.database.Oracle_dependency_test.get_parameter(parameter)
class astro.test.database.Oracle_dependency_test.test_Oracle_parameters(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_compatible()
test_database_name()
test_db_block_size()
test_dispatchers()
test_global_name()
test_job_queue_processes()
test_log_archive_dest_1()
test_log_archive_dest_state_1()
test_parallel_max_servers()
test_processes()
test_remote_archive_enable()
test_resource_limit()
test_service_names()
test_tablespace_AWINDX_exists()
test_tablespace_AWLISTS_exists()
test_tablespace_TEMP_exists()
test_tablespace_UNDOTBS1_exists()
test_tablespace_USERS_exists()
test_undo_retention()

astro.test.database.aw_context_test module

astro.test.database.aw_context_testMySQL module

Check that the Context package functions correctly.

class astro.test.database.aw_context_testMySQL.test_aw_contest(methodName='runTest')

Bases: unittest.case.TestCase

db_name = 'db.astro.rug.astro-wise.org'
package = 'awsecurity'
setUp()
skip = False
tearDown()
test_linked_objects()

test the creation, publishing and deletion of linked objects

test_mydb()

test the creation, publishing and deletion of objects across projects in mydb

test_set_privileges()

test setting privileges

test_set_project()

test setting a project

test_single_object()

test the creation, publishing, updating of a single object

verbose = False

astro.test.database.aw_derivedclass_test module

Check whether derived persistent classes that share the same table as their super class can be queried. See http://cvs.astro-wise.org/cvsroot/awe/common/database/DBOracle.py?r1=1.146&r2=1.147

class astro.test.database.aw_derivedclass_test.test_aw_derivedclass(methodName='runTest')

Bases: unittest.case.TestCase

test_derivedclass()

Check whether derived persistent classes that share the same table as their super class can be queried.

test_derivedclass_astro()

An explicit example using astro classes.

astro.test.database.aw_filebased_test module

Check whether awe has basic functionality without a database.

class astro.test.database.aw_filebased_test.test_aw_filebased(methodName='runTest')

Bases: unittest.case.TestCase

test_filebased_startup()

Import all default packages; this should not raise an error.

astro.test.database.aw_security_test module

astro.test.database.aw_util_test module

Check that the AW_UTIL package functions correctly.

class astro.test.database.aw_util_test.test_aw_util(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
tearDown()
test_lookup()

Module contents