MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,591 in github.com/Kludex/starlette

Functiontest_hidden_password
()
tests/test_datastructures.py:98
Functiontest_host_named_repr
()
tests/test_routing.py:1153
Functiontest_host_repr
()
tests/test_routing.py:1140
Functiontest_host_reverse_urls
()
tests/test_routing.py:552
Functiontest_host_routing
(test_client_factory: TestClientFactory)
tests/test_routing.py:470
Functiontest_host_routing_ignores_port
(host: str, test_client_factory: TestClientFactory)
tests/test_routing.py:524
Functiontest_host_routing_ip_literals
(test_client_factory: TestClientFactory)
tests/test_routing.py:530
Functiontest_host_routing_is_case_insensitive
(test_client_factory: TestClientFactory)
tests/test_routing.py:1258
Functiontest_host_routing_rejects_invalid_hosts
(test_client_factory: TestClientFactory, host: str)
tests/test_routing.py:517
Functiontest_http_endpoint_allow_header_omits_head_without_get
(test_client_factory: TestClientFactory)
tests/test_endpoints.py:110
Functiontest_http_endpoint_does_not_dispatch_non_verb_method
(test_client_factory: TestClientFactory)
tests/test_endpoints.py:93
Functiontest_http_endpoint_route
(client: TestClient)
tests/test_endpoints.py:36
Functiontest_http_endpoint_route_method
(client: TestClient)
tests/test_endpoints.py:48
Functiontest_http_endpoint_route_path_params
(client: TestClient)
tests/test_endpoints.py:42
Functiontest_http_endpoint_route_query_method
(client: TestClient)
tests/test_endpoints.py:56
Functiontest_http_endpoint_supports_early_hints
()
tests/test_endpoints.py:63
Functiontest_http_exception_does_not_use_threadpool
Verify that handling HTTPException does not invoke run_in_threadpool, confirming the handler correctly runs in the main async context.
tests/test_exceptions.py:202
Functiontest_http_repr
()
tests/test_exceptions.py:163
Functiontest_http_span_extracts_remote_parent
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:417
Functiontest_http_span_handles_optional_scope_values
( tracer_provider: tuple[TracerProvider, InMemorySpanExporter], )
tests/middleware/test_opentelemetry.py:492
Functiontest_http_span_omits_route_for_custom_route
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:394
Functiontest_http_span_omits_route_for_hosted_raw_asgi_app
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:378
Functiontest_http_span_records_error_response
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:458
Functiontest_http_span_records_server_error
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:437
Functiontest_http_span_resolves_host_route
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:362
Functiontest_http_span_uses_mount_path_for_raw_asgi_app
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:346
Functiontest_http_span_uses_mount_path_when_child_does_not_resolve
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:330
Functiontest_http_span_uses_nested_route
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:216
Functiontest_http_span_uses_route_and_semantic_attributes
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:186
Functiontest_http_span_without_starlette_app
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:476
Functiontest_http_str
()
tests/test_exceptions.py:157
Functiontest_https_redirect_middleware
(test_client_factory: TestClientFactory)
tests/middleware/test_https_redirect.py:15
Functiontest_https_redirect_middleware_without_server
(test_client_factory: TestClientFactory, host: str)
tests/middleware/test_https_redirect.py:68
Functiontest_incomplete_trailers
(test_client_factory: TestClientFactory, partial: bool)
tests/test_testclient.py:749
Functiontest_instrumentation_uses_actual_route_match_once
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:281
Functiontest_invalid_decorator_usage
()
tests/test_authentication.py:205
Functiontest_invalid_session_cookie
(test_client_factory: TestClientFactory)
tests/middleware/test_session.py:185
Functiontest_invalid_trailer_sequence
(test_client_factory: TestClientFactory, messages: list[Message], error: str)
tests/test_testclient.py:725
Functiontest_ipv6_base_url
( test_client_factory: TestClientFactory, base_url: str, server: list[str | int], host: str )
tests/test_testclient.py:663
Functiontest_iterate_in_threadpool
()
tests/test_concurrency.py:50
Functiontest_json_none_response
(test_client_factory: TestClientFactory)
tests/test_responses.py:49
Functiontest_json_response
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, payload: JSONCase)
benchmarks/json_benchmark.py:135
Functiontest_lifespan_app_subclass
()
tests/test_applications.py:552
Functiontest_lifespan_state_async_cm
(test_client_factory: TestClientFactory)
tests/test_routing.py:718
Functiontest_lifespan_state_unsupported
(test_client_factory: TestClientFactory)
tests/test_routing.py:699
Functiontest_limit_exceeded_after_response_started_is_raised
()
tests/middleware/test_body_limit.py:145
Functiontest_max_fields_is_customizable_high
(test_client_factory: TestClientFactory)
tests/test_formparsers.py:947
Functiontest_max_fields_is_customizable_low_raises
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:897
Functiontest_max_files_is_customizable_low_raises
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:927
Functiontest_max_part_size_exceeds_custom_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:1018
Functiontest_max_part_size_exceeds_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:978
Functiontest_merge_url
(test_client_factory: TestClientFactory)
tests/test_testclient.py:635
Functiontest_middleware
(test_client_factory: TestClientFactory)
tests/test_applications.py:281
Functiontest_middleware_args
(test_client_factory: TestClientFactory)
tests/test_applications.py:507
Functiontest_middleware_factory
(test_client_factory: TestClientFactory)
tests/test_applications.py:529
Functiontest_middleware_iter
()
tests/middleware/test_middleware.py:30
Functiontest_middleware_repr
()
tests/middleware/test_middleware.py:25
Functiontest_middleware_stack_init
(test_client_factory: TestClientFactory)
tests/test_applications.py:465
Functiontest_minimal_response_dispatch
( asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, case: BenchmarkCase, )
benchmarks/response_benchmark.py:79
Functiontest_missing_boundary_parameter
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:676
Functiontest_missing_env_file_raises
(tmpdir: Path)
tests/test_config.py:104
Functiontest_missing_name_parameter_on_content_disposition
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:755
Functiontest_mount_asgi_app_with_middleware_url_path_for
Mounted ASGI apps do not work with url path for, middleware does not change this
tests/test_routing.py:968
Functiontest_mount_at_root
(test_client_factory: TestClientFactory)
tests/test_routing.py:435
Functiontest_mount_can_override_application_limit
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:295
Functiontest_mount_named_repr
()
tests/test_routing.py:1128
Functiontest_mount_repr
()
tests/test_routing.py:1117
Functiontest_mount_routes_with_middleware_url_path_for
Checks that url_path_for still works with mounted routes with Middleware
tests/test_routing.py:963
Functiontest_mount_urls
(test_client_factory: TestClientFactory)
tests/test_routing.py:407
Functiontest_mounted_middleware_does_not_catch_exception
( test_client_factory: Callable[..., TestClient], )
tests/test_routing.py:1009
Functiontest_mounted_route
(client: TestClient)
tests/test_applications.py:192
Functiontest_mounted_route_path_params
(client: TestClient)
tests/test_applications.py:198
Functiontest_mounted_starlette_app_does_not_create_duplicate_span
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:232
Functiontest_multi_items
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:260
Functiontest_multi_tasks_failure_avoids_next_execution
( test_client_factory: TestClientFactory, )
tests/test_background.py:68
Functiontest_multidict
()
tests/test_datastructures.py:549
Functiontest_multipart
(asgi_runner: ASGIRunner, benchmark: BenchmarkFixture, case: BenchmarkCase)
benchmarks/multipart_benchmark.py:187
Functiontest_multipart_boundary_exceeds_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:704
Functiontest_multipart_closes_tempfile_on_oserror
Temporary files must be closed when an OSError (e.g. disk full) is raised during parsing.
tests/test_formparsers.py:1074
Functiontest_multipart_closes_tempfile_on_stream_error
()
tests/test_formparsers.py:1049
Functiontest_multipart_file_counts_towards_limit
(test_client_factory: TestClientFactory)
tests/middleware/test_body_limit.py:357
Functiontest_multipart_headers_exceed_limit
( app: ASGIApp, expectation: AbstractContextManager[Exception], test_client_factory: TestClientFac
tests/test_formparsers.py:728
Functiontest_multipart_multi_field_app_reads_body
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:464
Functiontest_multipart_request_data
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:153
Functiontest_multipart_request_decodes_charset
( charset: str, value: bytes, expected: str, test_client_factory: TestClientFactory )
tests/test_formparsers.py:626
Functiontest_multipart_request_files
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:159
Functiontest_multipart_request_files_with_content_type
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:177
Functiontest_multipart_request_large_file_rollover_in_background_thread
Test that Spooled file rollovers happen in background threads.
tests/test_formparsers.py:351
Functiontest_multipart_request_mixed_files_and_data
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:295
Functiontest_multipart_request_multiple_files
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:195
Functiontest_multipart_request_multiple_files_with_headers
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:223
Functiontest_multipart_request_resolves_charset_once
(test_client_factory: TestClientFactory)
tests/test_formparsers.py:640
Functiontest_multipart_request_with_charset_for_filename
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:370
Functiontest_multipart_request_with_encoded_value
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:418
Functiontest_multipart_request_without_charset_for_filename
(tmpdir: Path, test_client_factory: TestClientFactory)
tests/test_formparsers.py:394
Functiontest_multiple_cookie_headers
(test_client_factory: TestClientFactory)
tests/test_requests.py:476
Functiontest_multiple_middlewares_stacked_client_disconnected
Tests for: - https://github.com/Kludex/starlette/issues/2516 - https://github.com/Kludex/starlette/pull/2687
tests/middleware/test_base.py:1061
Functiontest_multiple_native_middlewares_do_not_create_duplicate_span
( test_client_factory: TestClientFactory, tracer_provider: tuple[TracerProvider, InMemorySpanExporter]
tests/middleware/test_opentelemetry.py:87
Functiontest_multiple_tasks
(test_client_factory: TestClientFactory)
tests/test_background.py:47
Functiontest_mutable_headers
()
tests/test_datastructures.py:328
← previousnext →1,101–1,200 of 1,591, ranked by callers