test_uninstalled_namespace_paths() — flask Function Reference
Architecture documentation for the test_uninstalled_namespace_paths() function in test_instance_config.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD ae13fdde_3ba2_3752_399d_dfc54adfb369["test_uninstalled_namespace_paths()"] 27c06adb_1aab_74d2_a3c7_31e63b6a6a6f["test_instance_config.py"] ae13fdde_3ba2_3752_399d_dfc54adfb369 -->|defined in| 27c06adb_1aab_74d2_a3c7_31e63b6a6a6f style ae13fdde_3ba2_3752_399d_dfc54adfb369 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_instance_config.py lines 46–62
def test_uninstalled_namespace_paths(tmp_path, monkeypatch, purge_module):
def create_namespace(package):
project = tmp_path / f"project-{package}"
monkeypatch.syspath_prepend(os.fspath(project))
ns = project / "namespace" / package
ns.mkdir(parents=True)
(ns / "__init__.py").write_text("import flask\napp = flask.Flask(__name__)\n")
return project
_ = create_namespace("package1")
project2 = create_namespace("package2")
purge_module("namespace.package2")
purge_module("namespace")
from namespace.package2 import app
assert app.instance_path == os.fspath(project2 / "instance")
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_uninstalled_namespace_paths() do?
test_uninstalled_namespace_paths() is a function in the flask codebase, defined in tests/test_instance_config.py.
Where is test_uninstalled_namespace_paths() defined?
test_uninstalled_namespace_paths() is defined in tests/test_instance_config.py at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free