MCPcopy
hub / github.com/pallets/werkzeug / test_range_request_without_complete_length

Function test_range_request_without_complete_length

tests/test_wrappers.py:670–675  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

668
669@pytest.mark.parametrize("value", [None, 0])
670def test_range_request_without_complete_length(value):
671 env = create_environ(headers={"Range": "bytes=0-10"})
672 response = wrappers.Response("Hello World")
673 response.make_conditional(env, accept_ranges=True, complete_length=value)
674 assert response.status_code == 200
675 assert response.data == b"Hello World"
676
677
678def test_invalid_range_request():

Callers

nothing calls this directly

Calls 2

make_conditionalMethod · 0.95
create_environFunction · 0.90

Tested by

no test coverage detected