Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ functions
Functions
984 in github.com/Lightning-AI/LitServe
⨍
Functions
984
◇
Types & classes
226
↳
Endpoints
30
Function
test__sanitize_accelerator
()
tests/unit/test_connector.py:107
Function
test_add_log_handler
()
tests/unit/test_logging.py:39
Function
test_add_ssl_context_from_env_with_env_vars
Tests that the SSL context is loaded correctly when environment variables are set.
tests/unit/test_utils.py:99
Function
test_add_ssl_context_from_env_with_one_env_var_missing
Tests that an empty dictionary is returned when one of the environment variables is missing.
tests/unit/test_utils.py:133
Function
test_add_ssl_context_from_env_without_env_vars
Tests that an empty dictionary is returned when environment variables are not set.
tests/unit/test_utils.py:126
Method
test_areceive
(self, transport, queues)
tests/unit/test_transport.py:50
Method
test_areceive_cancellation
(self, transport)
tests/unit/test_transport.py:76
Method
test_areceive_timeout
(self, transport)
tests/unit/test_transport.py:68
Method
test_areceive_when_closed
(self, transport)
tests/unit/test_transport.py:60
Function
test_args_kwargs_handling
()
tests/unit/test_mcp.py:205
Function
test_async_api
()
tests/integration/test_async.py:32
Function
test_async_consumer
(mock_async_context, timeout)
tests/unit/test_zmq_queue.py:106
Function
test_async_consumer_cleanup
()
tests/unit/test_zmq_queue.py:126
Function
test_async_inject_context
()
tests/unit/test_loops.py:997
Function
test_async_litapi
()
tests/unit/test_lit_server.py:598
Function
test_async_stream_litapi
()
tests/unit/test_lit_server.py:679
Function
test_authorized_api_key
()
tests/unit/test_auth.py:72
Function
test_authorized_custom
()
tests/unit/test_auth.py:42
Function
test_auto_accelerator
(input_accelerator, expected_accelerator)
tests/unit/test_lit_server.py:192
Function
test_batch_numpy
()
tests/unit/test_litapi.py:244
Function
test_batch_predict_dict_warning
Test that a warning is raised when predict returns a dict instead of a list.
tests/unit/test_batch.py:304
Function
test_batch_predict_set_warning
Test that a warning is raised when predict returns a set instead of a list.
tests/unit/test_batch.py:329
Function
test_batch_predict_string_warning
()
tests/unit/test_batch.py:175
Function
test_batch_size_mismatch
()
tests/unit/test_batch.py:284
Function
test_batch_timeout_with_concurrent_requests
(use_zmq)
tests/unit/test_simple.py:298
Function
test_batch_torch
()
tests/unit/test_litapi.py:238
Function
test_batch_unbatch_stream
()
tests/unit/test_litapi.py:113
Function
test_batched
()
tests/unit/test_batch.py:92
Function
test_batched_loop
()
tests/unit/test_batch.py:208
Function
test_batched_stream_server
(simple_batched_stream_api, use_zmq)
tests/unit/test_lit_server.py:99
Function
test_batched_streaming_loop
(mock_transport)
tests/unit/test_loops.py:335
Function
test_batching_with_client_side_batching
(openai_embedding_request_data_array)
tests/unit/test_openai_embedding.py:195
Function
test_broker_error_handling
Test broker handles ZMQ errors.
tests/unit/test_zmq_queue.py:41
Function
test_broker_start_stop
(mock_context)
tests/unit/test_zmq_queue.py:28
Function
test_call_after_stream
()
tests/unit/test_utils.py:40
Function
test_callback
(capfd)
tests/unit/test_callbacks.py:44
Function
test_callback_runner
()
tests/unit/test_callbacks.py:35
Function
test_check_cuda_with_nvidia_smi
()
tests/unit/test_connector.py:23
Function
test_check_cuda_with_nvidia_smi_mock_gpu
(mock_subprocess)
tests/unit/test_connector.py:32
Function
test_cli_main_import_error
(mock_import, mock_find_spec, capsys)
tests/unit/test_cli.py:157
Function
test_cli_main_lightning_not_installed
(mock_import, mock_run, mock_which, mock_find_spec, mock_is_package_installed)
tests/unit/test_cli.py:129
Method
test_close
(self, transport, queues)
tests/unit/test_transport.py:82
Function
test_collate_requests
(batch_timeout, batch_size)
tests/unit/test_batch.py:254
Function
test_collate_requests_sentinel
()
tests/unit/test_batch.py:265
Function
test_color
()
tests/unit/test_docker_builder.py:20
Function
test_compression
()
tests/unit/test_compression.py:39
Function
test_concurrent_async_inference
Test that async API processes requests concurrently (not sequentially).
tests/unit/test_lit_server.py:620
Function
test_concurrent_async_streaming_inference
(num_requests)
tests/unit/test_lit_server.py:706
Function
test_concurrent_requests
(lit_server)
tests/unit/test_simple.py:367
Function
test_configure_logging
()
tests/unit/test_utils.py:67
Function
test_configure_logging
(log_stream)
tests/unit/test_logging.py:14
Function
test_configure_logging_rich_not_installed
()
tests/unit/test_utils.py:72
Function
test_connector
(input_accelerator, expected_accelerator, expected_devices)
tests/unit/test_connector.py:92
Function
test_connector_add_logger
(logger_connector)
tests/unit/test_logger.py:55
Function
test_connector_mount
(mock_lit_server, test_logger, logger_connector)
tests/unit/test_logger.py:61
Function
test_continuous_batching_pre_setup
(continuous_batching_setup)
tests/unit/test_loops.py:940
Function
test_continuous_batching_run
(continuous_batching_setup)
tests/unit/test_loops.py:953
Method
test_create_mp_transport
(self, mock_manager)
tests/unit/test_transport.py:101
Method
test_create_transport_invalid_type
(self)
tests/unit/test_transport.py:113
Function
test_custom_api_path
()
tests/unit/test_lit_server.py:445
Function
test_custom_batch_unbatch
()
tests/unit/test_litapi.py:103
Function
test_custom_healthcheck_path
()
tests/unit/test_lit_server.py:453
Function
test_custom_info_path
()
tests/unit/test_lit_server.py:467
Function
test_custom_loop
(mock_transport)
tests/unit/test_loops.py:722
Function
test_custom_middleware
()
tests/unit/test_middlewares.py:40
Function
test_decode_request
()
tests/unit/test_litapi.py:134
Function
test_decode_request_with_openai_spec
()
tests/unit/test_litapi.py:140
Function
test_default_batch_unbatch
()
tests/unit/test_litapi.py:67
Function
test_default_batch_unbatch_stream
()
tests/unit/test_litapi.py:89
Function
test_default_loop_pre_setup_error
(stream, max_batch_size, error_msg)
tests/unit/test_loops.py:916
Function
test_default_unbatch_not_implemented
()
tests/unit/test_litapi.py:77
Function
test_device_identifiers
(lifespan_mock, simple_litapi)
tests/unit/test_lit_server.py:43
Function
test_device_identifiers_error
(simple_litapi, devices)
tests/unit/test_lit_server.py:61
Function
test_device_property
()
tests/unit/test_litapi.py:250
Function
test_disable_openapi_url_print_message
Test that the Swagger UI message is only printed when disable_openapi_url=False.
tests/unit/test_lit_server.py:346
Function
test_dockerize
(tmp_path, monkeypatch)
tests/unit/test_docker_builder.py:84
Function
test_dockerize_command
(monkeypatch, capsys)
tests/unit/test_cli.py:23
Function
test_dockerize_help
(monkeypatch, capsys)
tests/unit/test_cli.py:13
Function
test_dump_exception
()
tests/unit/test_utils.py:24
Function
test_e2e_batched_streaming
()
tests/e2e/test_e2e.py:109
Function
test_e2e_default_api
()
tests/e2e/test_e2e.py:86
Function
test_e2e_default_async_streaming
()
tests/e2e/test_e2e.py:397
Function
test_e2e_default_batching
()
tests/e2e/test_e2e.py:102
Function
test_e2e_default_spec
(openai_request_data)
tests/e2e/test_e2e.py:93
Function
test_e2e_openai_embedding_with_batching
()
tests/e2e/test_e2e.py:408
Function
test_e2e_openai_with_batching
(openai_request_data)
tests/e2e/test_e2e.py:285
Function
test_e2e_single_streaming
()
tests/e2e/test_e2e.py:354
Function
test_enable_async_not_set
()
tests/unit/test_litapi.py:280
Function
test_encode_response
()
tests/unit/test_litapi.py:149
Function
test_encode_response_with_custom_spec_api
()
tests/unit/test_litapi.py:184
Function
test_encode_response_with_openai_spec
()
tests/unit/test_litapi.py:155
Function
test_encode_response_with_openai_spec_dict_token_usage
()
tests/unit/test_litapi.py:166
Function
test_encode_response_with_openai_spec_invalid_input
()
tests/unit/test_litapi.py:200
Function
test_encode_response_with_openai_spec_invalid_predict_output
()
tests/unit/test_litapi.py:209
Function
test_ensure_lightning_installed_failure
When all available installers fail, should exit with error.
tests/unit/test_cli.py:93
Function
test_ensure_lightning_installed_fallback_to_uv
When pip fails, should fall back to uv.
tests/unit/test_cli.py:78
Function
test_ensure_lightning_installed_no_installer_available
When neither pip nor uv is available, should exit with error.
tests/unit/test_cli.py:109
Function
test_ensure_lightning_installed_pip_preferred
When both pip and uv are available, pip should be used first.
tests/unit/test_cli.py:53
Function
test_ensure_lightning_installed_with_pip
(mock_run, mock_which, mock_find_spec, mock_is_package_installed)
tests/unit/test_cli.py:41
Function
test_ensure_lightning_installed_with_uv
(mock_run, mock_which, mock_find_spec, mock_is_package_installed)
tests/unit/test_cli.py:66
← previous
next →
701–800 of 984, ranked by callers