tests.interface package
Submodules
tests.interface.test_clouddataextractor module
- class tests.interface.test_clouddataextractor.TestCloudDataExtractor(methodName='runTest')[source]
Bases:
TestCaseClass with tests of the CloudDataExtractor.
- test_certificate_credentials_failure(mock_credentials_error, mock_log_class)[source]
Method tests the certificate credentials method exception route.
- test_certificate_credentials_success(mock_log_class)[source]
Method tests the certificate credentials method success route.
- test_db_client_failure(mock_db_error, mock_log_class)[source]
Method tests the db_client method exception route.
- test_db_get_collection_no_connection(mock_log_class)[source]
Method tests the db_get_collection method exception route.
- test_db_get_collection_success(mock_log_class)[source]
Method tests the db_get_collection method success route.
- test_extract_collection_no_connection(mock_conn_exception, mock_log_class)[source]
Method tests the extract_collection method exception route.
- test_extract_collection_results_none(mock_collection_exception, mock_log_class)[source]
Method tests the extract_collection method exception route.
- test_extract_collection_save_failure(mock_collection_exception, mock_log_class)[source]
Method tests the extract_collection method exception route.
- test_extract_collection_success(mock_log_class)[source]
Method tests the extract_collection method success route.
- test_extract_data_credentials_fail(mock_log_class, mock_set_conn, mock_cert, mock_initialize)[source]
Method tests the extract_data method exception route.
- test_extract_data_db_client_fail(mock_log_class, mock_set_conn, mock_cert, mock_init, mock_db_client, mock_extract_collection)[source]
Method tests the extract_data method exception route.
- test_extract_data_success(mock_log_class, mock_set_conn, mock_cert, mock_init, mock_db_client, mock_extract_collection)[source]
Method tests the extract_data method success route.
- test_get_firestore_connection(mock_log_class, mock_fs_conn)[source]
Method tests the get method of the firestore connection.
tests.interface.test_datareaderui module
- class tests.interface.test_datareaderui.TestDataReaderUI(methodName='runTest')[source]
Bases:
TestCaseTests for DataReaderUI.
- test_fetch_as_dataframe_none_logs_error()[source]
Method tests fetching as dataframe from DataReaderUI failure route.
- test_fetch_as_dataframe_success()[source]
Method tests fetching as dataframe from DataReaderUI success route.
- test_fetch_as_dicts_none_logs_error()[source]
Method tests fetching as dicts from DataReaderUI failure route.