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

Function test_builder_from_environ

tests/test_test.py:407–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405
406
407def test_builder_from_environ():
408 environ = create_environ(
409 "/ㄱ",
410 base_url="https://example.com/base",
411 query_string={"name": "Werkzeug"},
412 data={"foo": "ㄴ"},
413 headers={"X-Foo": "ㄷ"},
414 )
415 builder = EnvironBuilder.from_environ(environ)
416
417 try:
418 new_environ = builder.get_environ()
419 finally:
420 builder.close()
421
422 assert new_environ == environ
423
424
425def test_file_closing():

Callers

nothing calls this directly

Calls 4

create_environFunction · 0.90
from_environMethod · 0.80
get_environMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected