test_subclassing.py — flask Source File
Architecture documentation for test_subclassing.py, a python file in the flask codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1013a7f2_012b_5b2a_27a2_887645508902["test_subclassing.py"] ae09b50b_b5d6_a85f_ee35_4bca99dcf5dd["io"] 1013a7f2_012b_5b2a_27a2_887645508902 --> ae09b50b_b5d6_a85f_ee35_4bca99dcf5dd 8c762fc5_c0b6_0d4d_3889_896d80fbf225["flask"] 1013a7f2_012b_5b2a_27a2_887645508902 --> 8c762fc5_c0b6_0d4d_3889_896d80fbf225 style 1013a7f2_012b_5b2a_27a2_887645508902 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from io import StringIO
import flask
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()
Domain
Subdomains
Functions
Classes
Dependencies
- flask
- io
Source
Frequently Asked Questions
What does test_subclassing.py do?
test_subclassing.py is a source file in the flask codebase, written in python. It belongs to the ApplicationCore domain, AppLifeCycle subdomain.
What functions are defined in test_subclassing.py?
test_subclassing.py defines 1 function(s): test_suppressed_exception_logging.
What does test_subclassing.py depend on?
test_subclassing.py imports 2 module(s): flask, io.
Where is test_subclassing.py in the architecture?
test_subclassing.py is located at tests/test_subclassing.py (domain: ApplicationCore, subdomain: AppLifeCycle, directory: tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free