Home / Function/ test_log_view_exception() — flask Function Reference

test_log_view_exception() — flask Function Reference

Architecture documentation for the test_log_view_exception() function in test_logging.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  34f7c11d_0a37_f703_54f5_00754b933a06["test_log_view_exception()"]
  15728ce1_f012_a726_8605_c127320eeec1["test_logging.py"]
  34f7c11d_0a37_f703_54f5_00754b933a06 -->|defined in| 15728ce1_f012_a726_8605_c127320eeec1
  style 34f7c11d_0a37_f703_54f5_00754b933a06 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_logging.py lines 86–98

def test_log_view_exception(app, client):
    @app.route("/")
    def index():
        raise Exception("test")

    app.testing = False
    stream = StringIO()
    rv = client.get("/", errors_stream=stream)
    assert rv.status_code == 500
    assert rv.data
    err = stream.getvalue()
    assert "Exception on / [GET]" in err
    assert "Exception: test" in err

Subdomains

Frequently Asked Questions

What does test_log_view_exception() do?
test_log_view_exception() is a function in the flask codebase, defined in tests/test_logging.py.
Where is test_log_view_exception() defined?
test_log_view_exception() is defined in tests/test_logging.py at line 86.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free