MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

Methodtest_accept_close_with_custom_code_full_cycle
Test accept-then-close with custom close code (1008).
tests/test_asgi_protocol_compat.py:508
Methodtest_accept_eagain
Test handling of EAGAIN during accept.
tests/test_gthread.py:630
Methodtest_accept_econnaborted
Test handling of ECONNABORTED during accept.
tests/test_gthread.py:643
Methodtest_accept_key_another_example
Test accept key calculation with another key.
tests/test_asgi_websocket_protocol.py:150
Methodtest_accept_key_calculation
Test Sec-WebSocket-Accept key calculation per RFC 6455.
tests/test_asgi_websocket_protocol.py:135
Methodtest_accept_sets_accepted_flag
Accepting should set the accepted flag.
tests/test_asgi_websocket_enhanced.py:224
Methodtest_accept_success
Test successful connection acceptance.
tests/test_gthread.py:614
Methodtest_accept_then_immediate_close_full_cycle
Test full WebSocket lifecycle with immediate close after accept. This simulates Django's CloseConsumer pattern and verifies that both
tests/test_asgi_protocol_compat.py:432
Methodtest_accept_with_headers
Accept can include additional headers.
tests/test_asgi_websocket_enhanced.py:236
Methodtest_accept_with_subprotocol
Accept with subprotocol should include it in response.
tests/test_asgi_websocket_enhanced.py:178
Methodtest_accept_without_subprotocol
Accept without subprotocol should work.
tests/test_asgi_websocket_enhanced.py:168
Functiontest_access_log_still_gets_the_request_time
(http_parser)
tests/test_asgi_request_base.py:133
Functiontest_access_log_switch_follows_setup
()
tests/test_asgi_config_cache.py:116
Methodtest_acknowledge_rejects_non_positive
(self)
tests/test_http2_connection.py:1745
Methodtest_add_transfer_encoding_to_headers
Test adding Transfer-Encoding header to response.
tests/test_asgi_streaming.py:560
Methodtest_addresses_none
Test when addresses are not available.
tests/test_asgi_http_scope.py:636
Methodtest_adds_transfer_encoding_when_not_present
Gunicorn should add Transfer-Encoding for streaming without Content-Length.
tests/test_asgi_protocol_compat.py:957
Methodtest_aggregate_count
Test data aggregation with count.
examples/celery_alternative/tests/test_tasks.py:188
Methodtest_aggregate_data
Test data aggregation via API.
examples/celery_alternative/tests/test_integration.py:219
Methodtest_aggregate_sum
Test data aggregation with sum.
examples/celery_alternative/tests/test_tasks.py:170
Methodtest_all_apps_accessible
All configured apps should be accessible.
tests/docker/per_app_allocation/test_per_app_e2e.py:284
Methodtest_all_callbacks
Test all callbacks fire in correct order.
tests/test_python_protocol.py:310
Methodtest_all_callbacks_fire
All callbacks fire in correct order.
tests/test_asgi_callback_parser.py:382
Methodtest_all_close_codes_defined
All standard close codes should be defined.
tests/test_asgi_websocket_enhanced.py:417
Methodtest_all_dirty_settings_accessible
Test all dirty settings are accessible.
tests/test_dirty_config.py:93
Methodtest_all_http2_settings_accessible
(self)
tests/test_http2_config.py:225
Methodtest_all_inherit_from_http2error
(self)
tests/test_http2_errors.py:95
Methodtest_all_proxy_headers_preserved
All standard proxy headers should be preserved.
tests/test_asgi_forwarded_headers.py:378
Methodtest_all_required_keys_present
All ASGI 3.0 required HTTP scope keys are present.
tests/docker/asgi_framework_compat/tests/test_http_scope.py:152
Functiontest_allowed_ip
Test allowed IP succeeds.
tests/test_asgi_uwsgi.py:466
Methodtest_allowed_ip_wildcard
Test that wildcard allows any IP.
tests/test_uwsgi.py:269
Methodtest_alpn_http11_fallback
Test that server accepts HTTP/1.1 via ALPN.
tests/docker/http2/test_http2_docker.py:233
Methodtest_alpn_negotiation
Verify ALPN negotiates h2 protocol.
tests/docker/http2/test_http2_docker.py:221
Functiontest_always_use_configured_logger
()
tests/test_config.py:436
Methodtest_announced_trailers_never_sent_still_end_the_stream
(self)
tests/test_http2_h2c.py:1925
Functiontest_app_config
()
tests/test_config.py:301
Functiontest_app_ending_before_accept_gets_http_response
ASGI: a handshake the app never accepts is refused with HTTP.
tests/test_asgi_websocket_enhanced.py:742
Functiontest_app_error_after_headers_does_not_poison_hpack
(server, client)
tests/test_http2_live.py:320
Methodtest_app_error_handling
Test that errors from app are raised properly.
tests/test_dirty_app.py:186
Methodtest_app_exception_during_startup
App exception during startup should be handled.
tests/test_asgi_lifespan.py:280
Methodtest_app_exception_is_not_startup_failed
A crashing app may just lack lifespan support, so it is not definite.
tests/test_asgi_lifespan.py:306
Methodtest_app_exits_before_startup_complete
App exiting before startup.complete should fail startup.
tests/test_asgi_lifespan.py:320
Methodtest_app_failure_mid_stream_answers_500
(self)
tests/test_http2_h2c.py:1642
Methodtest_app_maintains_state
Test that app maintains state between calls.
tests/test_dirty_app.py:170
Functiontest_app_response_header_error_is_500
A header the application tried to send is the application's fault: 500, not the 400 a malformed request gets.
tests/test_request_line_error.py:40
Methodtest_app_sees_disconnect
(self)
tests/test_http2_h2c.py:1243
Methodtest_app_supplied_values_win
(self)
tests/test_http2_response.py:167
Methodtest_application_close_code
Test application-defined close code (4000+).
tests/docker/asgi_compliance/test_websocket_compliance.py:258
Methodtest_application_error_answers_500
(self, parser)
tests/test_http2_h2c.py:2240
Methodtest_apps_maintain_separate_state
Test that multiple apps maintain independent state.
tests/dirty/test_multi_app_routing.py:311
Methodtest_apps_work_after_scaling
Both apps should work after scaling up and down.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:213
Functiontest_arbiter_calls_worker_exit
(mock_os_fork)
tests/test_arbiter.py:140
Methodtest_arbiter_config_has_multiple_apps
Test arbiter config correctly stores multiple apps.
tests/dirty/test_multi_app_routing.py:615
Functiontest_arbiter_creates_sockets_when_reuse_port_available
( mock_socket, mock_os_fork, create_sockets)
tests/test_arbiter.py:182
Functiontest_arbiter_inherits_sockets_when_reuse_port_disabled
( mock_socket, mock_os_fork, create_sockets)
tests/test_arbiter.py:207
Functiontest_arbiter_inherits_sockets_when_reuse_port_unavailable
( mock_socket, mock_os_fork, create_sockets)
tests/test_arbiter.py:158
Methodtest_arbiter_init_with_dirty_config
Test arbiter initializes with dirty configuration.
tests/test_dirty_integration.py:85
Methodtest_arbiter_init_without_dirty_config
Test arbiter initializes without dirty configuration.
tests/test_dirty_integration.py:100
Functiontest_arbiter_reap_workers
(mock_os_waitpid)
tests/test_arbiter.py:229
Functiontest_arbiter_reexec_limit_child
(fork)
tests/test_arbiter.py:132
Functiontest_arbiter_reexec_limit_parent
(fork)
tests/test_arbiter.py:124
Functiontest_arbiter_reexec_passing_gunicorn_sockets
(execvpe, fork, getpid)
tests/test_arbiter.py:108
Functiontest_arbiter_reexec_passing_systemd_sockets
(execvpe, fork, getpid)
tests/test_arbiter.py:92
Methodtest_arbiter_routes_no_workers_error
Test arbiter returns error when no workers for multi-app config.
tests/dirty/test_multi_app_routing.py:587
Functiontest_arbiter_stop_child_does_not_unlink_listeners
(close_sockets)
tests/test_arbiter.py:57
Functiontest_arbiter_stop_closes_listeners
(close_sockets)
tests/test_arbiter.py:46
Functiontest_arbiter_stop_does_not_unlink_systemd_listeners
(close_sockets)
tests/test_arbiter.py:73
Functiontest_arbiter_stop_does_not_unlink_when_using_reuse_port
(close_sockets)
tests/test_arbiter.py:81
Functiontest_arbiter_stop_parent_does_not_unlink_listeners
(close_sockets)
tests/test_arbiter.py:65
Methodtest_arbiter_timeout_response
Test that arbiter returns timeout error when worker doesn't respond.
tests/test_dirty_integration.py:194
Methodtest_arrival_credit_failure_is_swallowed
(self)
tests/test_http2_async_connection.py:1273
Methodtest_arrival_credit_failure_is_swallowed
(self)
tests/test_http2_connection.py:1771
Methodtest_asgi_app_with_disconnect_listener
Test Django-style ASGI app pattern that listens for disconnect. This simulates a real-world scenario where an ASGI app: 1. Reads the
tests/test_asgi_compliance.py:998
Methodtest_asgi_lifespan_default
Test default asgi_lifespan value.
tests/test_asgi_worker.py:776
Methodtest_asgi_lifespan_validation
Test asgi_lifespan validation.
tests/test_asgi_worker.py:781
Methodtest_asgi_loop_default
Test default asgi_loop value.
tests/test_asgi_worker.py:758
Methodtest_asgi_loop_validation
Test asgi_loop validation.
tests/test_asgi_worker.py:763
Functiontest_asgi_parser
Test invalid HTTP requests with ASGI callback parsers.
tests/test_asgi_invalid_requests.py:62
Functiontest_asgi_parser
Test valid HTTP requests with ASGI callback parser.
tests/test_asgi_valid_requests.py:33
Methodtest_asgi_path_never_touches_h2_directly
(self)
tests/test_http2_h2c.py:1836
Functiontest_asgi_python_rejects_bare_lf
(raw)
tests/test_bare_lf.py:56
Functiontest_asgi_python_rejects_transfer_encoding_not_ending_with_chunked
(raw)
tests/test_transfer_encoding.py:95
Methodtest_asgi_spec_version_present
Test that spec_version is present in ASGI dict.
tests/test_asgi_compliance.py:89
Methodtest_asgi_spec_version_value
Test that spec_version follows semantic versioning.
tests/test_asgi_compliance.py:102
Methodtest_asgi_version_is_dict
Test that 'asgi' value is a dictionary.
tests/test_asgi_compliance.py:63
Methodtest_asgi_version_present
Test that 'asgi' key is present in HTTP scope.
tests/test_asgi_compliance.py:50
Methodtest_asgi_version_value
Test that ASGI version is '3.0'.
tests/test_asgi_compliance.py:76
Functiontest_asgi_worker_accepts_chunked_as_final_coding
(http_parser, raw)
tests/test_transfer_encoding.py:121
Functiontest_asgi_worker_answers_400
(http_parser, raw)
tests/test_transfer_encoding.py:103
Methodtest_async_concurrent_requests
Test concurrent requests with asyncio.
examples/http2_gevent/test_http2_gevent.py:198
Methodtest_async_context_manager_connection_error
Test async context manager with connection error.
tests/test_dirty_client.py:107
Methodtest_async_fastapi
Test FastAPI with async client.
tests/docker/asgi_compliance/test_framework_integration.py:470
Methodtest_async_generator_end_to_end
Test complete flow: async generator -> worker -> arbiter -> client.
tests/dirty/test_streaming_integration.py:166
Methodtest_async_generator_error_mid_stream
Test that error during async streaming sends error message.
tests/dirty/test_worker_streaming.py:199
Methodtest_async_generator_sends_chunks_and_end
Test that async generator sends chunk messages then end message.
tests/dirty/test_worker_streaming.py:163
Methodtest_async_http2_concurrent_streams
Test concurrent HTTP/2 streams.
tests/docker/asgi_compliance/test_http2_asgi.py:307
Methodtest_async_http2_mixed_requests
Test mixed request types over HTTP/2.
tests/docker/asgi_compliance/test_http2_asgi.py:325
Methodtest_async_http2_streaming
Test async streaming over HTTP/2.
tests/docker/asgi_compliance/test_http2_asgi.py:291
Methodtest_async_multiple_streams
Test that multiple concurrent streams work over single HTTP/2 connection. This test verifies that HTTP/2 can handle multiple concurrent reque
examples/http2_gevent/test_http2_gevent.py:218
Methodtest_async_read_empty_connection
Test async read on empty connection.
tests/test_dirty_protocol.py:318
← previousnext →2,801–2,900 of 5,599, ranked by callers