lsst.dax.apdb ga786bb30fb+ba3a7118d6
Public Member Functions | Static Public Attributes | List of all members
lsst.dax.apdb.tests._apdb.ApdbTest Class Reference
Inheritance diagram for lsst.dax.apdb.tests._apdb.ApdbTest:

Public Member Functions

ApdbConfig make_config (self, **Any kwargs)
 
int n_columns (self, ApdbTables table)
 
ApdbTables getDiaObjects_table (self)
 
Region make_region (self, Tuple[float, float, float] xyz=(1., 1., -1.))
 
None assert_catalog (self, Any catalog, int rows, ApdbTables table)
 
None test_makeSchema (self)
 
None test_empty_gets (self)
 
None test_empty_gets_0months (self)
 
None test_storeObjects (self)
 
None test_objectHistory (self)
 
None test_storeSources (self)
 
None test_sourceHistory (self)
 
None test_storeForcedSources (self)
 
None test_forcedSourceHistory (self)
 
None test_storeSSObjects (self)
 
None test_reassignObjects (self)
 
None test_midPointTai_src (self)
 
None test_midPointTai_fsrc (self)
 

Static Public Attributes

bool time_partition_tables = False
 
 visit_time = DateTime("2021-01-01T00:00:00", DateTime.TAI)
 
bool fsrc_requires_id_list = False
 
bool fsrc_history_region_filtering = False
 
int n_obj_columns = 7
 
int n_obj_last_columns = 5
 
int n_src_columns = 9
 
int n_fsrc_columns = 4
 
int n_ssobj_columns = 3
 

Detailed Description

Base class for Apdb tests that can be specialized for concrete
implementation.

This can only be used as a mixin class for a unittest.TestCase and it
calls various assert methods.

Member Function Documentation

◆ assert_catalog()

None lsst.dax.apdb.tests._apdb.ApdbTest.assert_catalog (   self,
Any  catalog,
int  rows,
ApdbTables  table 
)
Validate catalog type and size

Parameters
----------
catalog : `object`
    Expected type of this is ``type``.
rows : int
    Expected number of rows in a catalog.
table : `ApdbTables`
    APDB table type.

◆ getDiaObjects_table()

ApdbTables lsst.dax.apdb.tests._apdb.ApdbTest.getDiaObjects_table (   self)
Return type of table returned from getDiaObjects method.

◆ make_config()

ApdbConfig lsst.dax.apdb.tests._apdb.ApdbTest.make_config (   self,
**Any  kwargs 
)
Make config class instance used in all tests.

◆ make_region()

Region lsst.dax.apdb.tests._apdb.ApdbTest.make_region (   self,
Tuple[float, float, float]   xyz = (1., 1., -1.) 
)
Make a region to use in tests

◆ n_columns()

int lsst.dax.apdb.tests._apdb.ApdbTest.n_columns (   self,
ApdbTables  table 
)
Return number of columns for a specified table.

◆ test_empty_gets()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_empty_gets (   self)
Test for getting data from empty database.

All get() methods should return empty results, only useful for
checking that code is not broken.

◆ test_empty_gets_0months()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_empty_gets_0months (   self)
Test for getting data from empty database.

All get() methods should return empty DataFrame or None.

◆ test_forcedSourceHistory()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_forcedSourceHistory (   self)
Store and retrieve DiaForcedSource history.

◆ test_makeSchema()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_makeSchema (   self)
Test for makeing APDB schema.

◆ test_midPointTai_fsrc()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_midPointTai_fsrc (   self)
Test for time filtering of DiaForcedSources.

◆ test_midPointTai_src()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_midPointTai_src (   self)
Test for time filtering of DiaSources.

◆ test_objectHistory()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_objectHistory (   self)
Store and retrieve DiaObject history.

◆ test_reassignObjects()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_reassignObjects (   self)
Reassign DiaObjects.

◆ test_sourceHistory()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_sourceHistory (   self)
Store and retrieve DiaSource history.

◆ test_storeForcedSources()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeForcedSources (   self)
Store and retrieve DiaForcedSources.

◆ test_storeObjects()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeObjects (   self)
Store and retrieve DiaObjects.

◆ test_storeSources()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSources (   self)
Store and retrieve DiaSources.

◆ test_storeSSObjects()

None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSSObjects (   self)
Store and retrieve SSObjects.

The documentation for this class was generated from the following file: