Home / Function/ test_suppressed_exception_logging() — flask Function Reference

test_suppressed_exception_logging() — flask Function Reference

Architecture documentation for the test_suppressed_exception_logging() function in test_subclassing.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  34d1f592_9748_4fd4_fd42_bd9634c00227["test_suppressed_exception_logging()"]
  1013a7f2_012b_5b2a_27a2_887645508902["test_subclassing.py"]
  34d1f592_9748_4fd4_fd42_bd9634c00227 -->|defined in| 1013a7f2_012b_5b2a_27a2_887645508902
  adacbc17_1c29_b1fa_3ecd_5026dbf013e1["log_exception()"]
  34d1f592_9748_4fd4_fd42_bd9634c00227 -->|calls| adacbc17_1c29_b1fa_3ecd_5026dbf013e1
  style 34d1f592_9748_4fd4_fd42_bd9634c00227 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_subclassing.py lines 6–21

def test_suppressed_exception_logging():
    class SuppressedFlask(flask.Flask):
        def log_exception(self, ctx, exc_info):
            pass

    out = StringIO()
    app = SuppressedFlask(__name__)

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

    rv = app.test_client().get("/", errors_stream=out)
    assert rv.status_code == 500
    assert b"Internal Server Error" in rv.data
    assert not out.getvalue()

Subdomains

Frequently Asked Questions

What does test_suppressed_exception_logging() do?
test_suppressed_exception_logging() is a function in the flask codebase, defined in tests/test_subclassing.py.
Where is test_suppressed_exception_logging() defined?
test_suppressed_exception_logging() is defined in tests/test_subclassing.py at line 6.
What does test_suppressed_exception_logging() call?
test_suppressed_exception_logging() calls 1 function(s): log_exception.

Analyze Your Own Codebase

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

Try Supermodel Free