MCPcopy
hub / github.com/pallets/flask / __init__

Method __init__

src/flask/testing.py:125–133  ·  view source on GitHub ↗
(self, *args: t.Any, **kwargs: t.Any)

Source from the content-addressed store, hash-verified

123 application: Flask
124
125 def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
126 super().__init__(*args, **kwargs)
127 self.preserve_context = False
128 self._new_contexts: list[t.ContextManager[t.Any]] = []
129 self._context_stack = ExitStack()
130 self.environ_base = {
131 "REMOTE_ADDR": "127.0.0.1",
132 "HTTP_USER_AGENT": f"Werkzeug/{_get_werkzeug_version()}",
133 }
134
135 @contextmanager
136 def session_transaction(

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

_get_werkzeug_versionFunction · 0.85

Tested by

no test coverage detected