test_regression.py — flask Source File
Architecture documentation for test_regression.py, a python file in the flask codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 44ec4dad_8e0f_379c_127d_ffc599cf4918["test_regression.py"] 8c762fc5_c0b6_0d4d_3889_896d80fbf225["flask"] 44ec4dad_8e0f_379c_127d_ffc599cf4918 --> 8c762fc5_c0b6_0d4d_3889_896d80fbf225 style 44ec4dad_8e0f_379c_127d_ffc599cf4918 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import flask
def test_aborting(app):
class Foo(Exception):
whatever = 42
@app.errorhandler(Foo)
def handle_foo(e):
return str(e.whatever)
@app.route("/")
def index():
raise flask.abort(flask.redirect(flask.url_for("test")))
@app.route("/test")
def test():
raise Foo()
with app.test_client() as c:
rv = c.get("/")
location_parts = rv.headers["Location"].rpartition("/")
if location_parts[0]:
# For older Werkzeug that used absolute redirects.
assert location_parts[0] == "http://localhost"
assert location_parts[2] == "test"
rv = c.get("/test")
assert rv.data == b"42"
Domain
Subdomains
Functions
Classes
Dependencies
- flask
Source
Frequently Asked Questions
What does test_regression.py do?
test_regression.py is a source file in the flask codebase, written in python. It belongs to the ApplicationCore domain, ExtensionRegistry subdomain.
What functions are defined in test_regression.py?
test_regression.py defines 1 function(s): test_aborting.
What does test_regression.py depend on?
test_regression.py imports 1 module(s): flask.
Where is test_regression.py in the architecture?
test_regression.py is located at tests/test_regression.py (domain: ApplicationCore, subdomain: ExtensionRegistry, directory: tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free