MCPcopy Create free account
hub / github.com/pallets/flask / test_installed_module_paths

Function test_installed_module_paths

tests/test_instance_config.py:65–77  ·  view source on GitHub ↗
(
    modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages, limit_loader
)

Source from the content-addressed store, hash-verified

63
64
65def test_installed_module_paths(
66 modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages, limit_loader
67):
68 (site_packages / "site_app.py").write_text(
69 "import flask\napp = flask.Flask(__name__)\n"
70 )
71 purge_module("site_app")
72
73 from site_app import app
74
75 assert app.instance_path == os.fspath(
76 modules_tmp_path / "var" / "site_app-instance"
77 )
78
79
80def test_installed_package_paths(

Callers

nothing calls this directly

Calls 1

purge_moduleFunction · 0.85

Tested by

no test coverage detected