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_fail_empty_clients_info(_)[source]
Return type:

None

async test_start_fail_invalid_server_config(_)[source]
Return type:

None

async test_start_fail_missing_info(_)[source]
Return type:

None

async test_start_fail_response(mock_requests, mock_redis, mock_launch_local_server, _)[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, _)[source]
Return type:

None

async test_start_no_uuid_in_response(mock_requests, mock_redis, mock_launch_local_server, _)[source]
Return type:

None

async test_start_success(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_redis, mock_launch_local_server, _)[source]
Return type:

None

async test_start_wait_for_metric_timeout(_, mock_redis, mock_launch_local_server, __)[source]
Return type:

None