test_installed_package_paths() — flask Function Reference
Architecture documentation for the test_installed_package_paths() function in test_instance_config.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 793ccfe5_561b_78a9_ac4b_68da033f935e["test_installed_package_paths()"] 27c06adb_1aab_74d2_a3c7_31e63b6a6a6f["test_instance_config.py"] 793ccfe5_561b_78a9_ac4b_68da033f935e -->|defined in| 27c06adb_1aab_74d2_a3c7_31e63b6a6a6f style 793ccfe5_561b_78a9_ac4b_68da033f935e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_instance_config.py lines 80–96
def test_installed_package_paths(
modules_tmp_path, modules_tmp_path_prefix, purge_module, monkeypatch
):
installed_path = modules_tmp_path / "path"
installed_path.mkdir()
monkeypatch.syspath_prepend(installed_path)
app = installed_path / "installed_package"
app.mkdir()
(app / "__init__.py").write_text("import flask\napp = flask.Flask(__name__)\n")
purge_module("installed_package")
from installed_package import app
assert app.instance_path == os.fspath(
modules_tmp_path / "var" / "installed_package-instance"
)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_installed_package_paths() do?
test_installed_package_paths() is a function in the flask codebase, defined in tests/test_instance_config.py.
Where is test_installed_package_paths() defined?
test_installed_package_paths() is defined in tests/test_instance_config.py at line 80.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free