Home / Class/ _TestHandler Class — flask Architecture

_TestHandler Class — flask Architecture

Architecture documentation for the _TestHandler class in test_templating.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  b477f3cc_d17d_8cc7_0ec4_a5fa6d4f2df1["_TestHandler"]
  b3595fee_7041_96b0_f59f_4080381c7deb["test_templating.py"]
  b477f3cc_d17d_8cc7_0ec4_a5fa6d4f2df1 -->|defined in| b3595fee_7041_96b0_f59f_4080381c7deb
  587a7c9c_937c_fc25_93be_ccb450351bc5["handle()"]
  b477f3cc_d17d_8cc7_0ec4_a5fa6d4f2df1 -->|method| 587a7c9c_937c_fc25_93be_ccb450351bc5

Relationship Graph

Source Code

tests/test_templating.py lines 493–508

    class _TestHandler(logging.Handler):
        def handle(self, record):
            called.append(True)
            text = str(record.msg)
            assert "1: trying loader of application 'blueprintapp'" in text
            assert (
                "2: trying loader of blueprint 'admin' (blueprintapp.apps.admin)"
            ) in text
            assert (
                "trying loader of blueprint 'frontend' (blueprintapp.apps.frontend)"
            ) in text
            assert "Error: the template could not be found" in text
            assert (
                "looked up from an endpoint that belongs to the blueprint 'frontend'"
            ) in text
            assert "See https://flask.palletsprojects.com/blueprints/#templates" in text

Frequently Asked Questions

What is the _TestHandler class?
_TestHandler is a class in the flask codebase, defined in tests/test_templating.py.
Where is _TestHandler defined?
_TestHandler is defined in tests/test_templating.py at line 493.

Analyze Your Own Codebase

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

Try Supermodel Free