Public Member Functions | |
| ApdbConfig | make_instance (self, **Any kwargs) |
| Region | make_region (self, tuple[float, float, float] xyz=(1.0, 1.0, -1.0)) |
| None | test_schema_add_replica (self) |
| None | test_schemaVersionCheck (self) |
Static Public Attributes | |
| visit_time = astropy.time.Time("2021-01-01T00:00:00", format="isot", scale="tai") | |
Base class for unit tests that verify how schema changes work.
| ApdbConfig lsst.dax.apdb.tests._apdb.ApdbSchemaUpdateTest.make_instance | ( | self, | |
| **Any | kwargs ) |
Make config class instance used in all tests. This method should return configuration that point to the identical database instance on each call (i.e. ``db_url`` must be the same, which also means for sqlite it has to use on-disk storage).
| Region lsst.dax.apdb.tests._apdb.ApdbSchemaUpdateTest.make_region | ( | self, | |
| tuple[float, float, float] | xyz = (1.0, 1.0, -1.0) ) |
Make a region to use in tests
| None lsst.dax.apdb.tests._apdb.ApdbSchemaUpdateTest.test_schema_add_replica | ( | self | ) |
Check that new code can work with old schema without replica tables.
| None lsst.dax.apdb.tests._apdb.ApdbSchemaUpdateTest.test_schemaVersionCheck | ( | self | ) |
Check version number compatibility.