lsst.dax.apdb
22.0.1-5-g75bb458+b62fada561
|
Public Member Functions | |
ApdbConfig | make_config (self, **Any kwargs) |
int | n_columns (self, ApdbTables table) |
Region | make_region (self) |
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_storeSources (self) |
None | test_storeForcedSources (self) |
None | test_midPointTai_src (self) |
None | test_midPointTai_fsrc (self) |
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.
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.
ApdbConfig lsst.dax.apdb.tests._apdb.ApdbTest.make_config | ( | self, | |
**Any | kwargs | ||
) |
Make config class instance used in all tests.
Region lsst.dax.apdb.tests._apdb.ApdbTest.make_region | ( | self | ) |
Make a region used in tests
int lsst.dax.apdb.tests._apdb.ApdbTest.n_columns | ( | self, | |
ApdbTables | table | ||
) |
Return number of columns for a specified table.
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.
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.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_makeSchema | ( | self | ) |
Test for makeing APDB schema.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_midPointTai_fsrc | ( | self | ) |
Test for time filtering of DiaForcedSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_midPointTai_src | ( | self | ) |
Test for time filtering of DiaSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeForcedSources | ( | self | ) |
Store and retrieve DiaForcedSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeObjects | ( | self | ) |
Store and retrieve DiaObjects.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSources | ( | self | ) |
Store and retrieve DiaSources.