Home / Function/ test_prefix_package_paths() — flask Function Reference

test_prefix_package_paths() — flask Function Reference

Architecture documentation for the test_prefix_package_paths() function in test_instance_config.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  ed5bcf88_dbaf_7d82_98ba_19b9657ef097["test_prefix_package_paths()"]
  27c06adb_1aab_74d2_a3c7_31e63b6a6a6f["test_instance_config.py"]
  ed5bcf88_dbaf_7d82_98ba_19b9657ef097 -->|defined in| 27c06adb_1aab_74d2_a3c7_31e63b6a6a6f
  style ed5bcf88_dbaf_7d82_98ba_19b9657ef097 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_instance_config.py lines 99–111

def test_prefix_package_paths(
    modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages
):
    app = site_packages / "site_package"
    app.mkdir()
    (app / "__init__.py").write_text("import flask\napp = flask.Flask(__name__)\n")
    purge_module("site_package")

    import site_package

    assert site_package.app.instance_path == os.fspath(
        modules_tmp_path / "var" / "site_package-instance"
    )

Subdomains

Frequently Asked Questions

What does test_prefix_package_paths() do?
test_prefix_package_paths() is a function in the flask codebase, defined in tests/test_instance_config.py.
Where is test_prefix_package_paths() defined?
test_prefix_package_paths() is defined in tests/test_instance_config.py at line 99.

Analyze Your Own Codebase

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

Try Supermodel Free