florist.tests.unit.api.routes.server.test_training module

make_mock_db_client()[source]
Return type:

Mock

async test_client_training_listener(mock_get_subscriber, mock_get_from_redis, mock_motor_client)[source]
Return type:

None

async test_client_training_listener_already_finished(mock_get_from_redis, mock_motor_client)[source]
Return type:

None

async test_client_training_listener_fail_no_uuid()[source]
Return type:

None

async test_server_training_listener(mock_get_subscriber, mock_get_from_redis, mock_motor_client)[source]
Return type:

None

async test_server_training_listener_already_finished(mock_get_from_redis, mock_motor_client)[source]
Return type:

None

async test_server_training_listener_fail_no_redis_host()[source]
Return type:

None

async test_server_training_listener_fail_no_redis_port()[source]
Return type:

None

async test_server_training_listener_fail_no_server_uuid()[source]
Return type:

None

async test_start_client_uuid_in_response_is_not_a_string(mock_set_server_log_file_path, mock_requests, mock_redis, mock_launch_local_server, mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_fail_empty_clients_info(mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_fail_invalid_server_config(mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_fail_missing_info()[source]
Return type:

None

async test_start_fail_response(mock_set_server_log_file_path, mock_requests, mock_redis, mock_launch_local_server, mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_fail_unsupported_client()[source]
Return type:

None

async test_start_fail_unsupported_server_model()[source]
Return type:

None

async test_start_launch_server_exception(mock_launch_local_server, mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_no_client_uuid_in_response(mock_set_server_log_file_path, mock_requests, mock_redis, mock_launch_local_server, mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_success(mock_set_server_pid, mock_server_log_file_path, mock_set_uuids, mock_set_status, mock_requests, mock_redis, mock_launch_local_server, mock_server_training_listener, mock_client_training_listener)[source]
Return type:

None

async test_start_wait_for_metric_exception(mock_set_server_log_file_path, mock_redis, mock_launch_local_server, mock_set_error_message, mock_set_status)[source]
Return type:

None

async test_start_wait_for_metric_timeout(mock_set_server_log_file_path, _, mock_redis, mock_launch_local_server, mock_set_error_message, mock_set_status)[source]
Return type:

None