test_wsgi_errors_stream() — flask Function Reference
Architecture documentation for the test_wsgi_errors_stream() function in test_logging.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD c7589c4a_e713_030c_83d9_cccb120ca758["test_wsgi_errors_stream()"] 15728ce1_f012_a726_8605_c127320eeec1["test_logging.py"] c7589c4a_e713_030c_83d9_cccb120ca758 -->|defined in| 15728ce1_f012_a726_8605_c127320eeec1 style c7589c4a_e713_030c_83d9_cccb120ca758 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_logging.py lines 54–67
def test_wsgi_errors_stream(app, client):
@app.route("/")
def index():
app.logger.error("test")
return ""
stream = StringIO()
client.get("/", errors_stream=stream)
assert "ERROR in test_logging: test" in stream.getvalue()
assert wsgi_errors_stream._get_current_object() is sys.stderr
with app.test_request_context(errors_stream=stream):
assert wsgi_errors_stream._get_current_object() is stream
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_wsgi_errors_stream() do?
test_wsgi_errors_stream() is a function in the flask codebase, defined in tests/test_logging.py.
Where is test_wsgi_errors_stream() defined?
test_wsgi_errors_stream() is defined in tests/test_logging.py at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free