huntsman.drp.tests.test_collection

Functions

test_datatable_query_by_date(...)

Test ability to query using datetime ranges.

test_ingest_duplicate_fpack(exposure_collection)

Check an exception is raised when inserting duplicate .fits/.fz document.

test_ingest_ref_image(...)

Test that we can evaluate metrics that use a reference calib.

test_insert_duplicate(exposure_collection)

Check an exception is raised when inserting a duplicate document.

test_mongodb_wrong_host_name(config)

Test if an error is raised if the mongodb hostname is incorrect.

test_quality_filter(exposure_collection)

test_query_latest(exposure_collection, config)

Test query_latest finds the correct number of DB entries.

test_update(exposure_collection)

Test that we can update a document specified by a filename.

test_update_file_data_bad_filename(...)

Test that we can update a document specified by a filename.