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

Function test_uninstalled_module_paths

tests/test_instance_config.py:16–27  ·  view source on GitHub ↗
(modules_tmp_path, purge_module)

Source from the content-addressed store, hash-verified

14
15
16def test_uninstalled_module_paths(modules_tmp_path, purge_module):
17 (modules_tmp_path / "config_module_app.py").write_text(
18 "import os\n"
19 "import flask\n"
20 "here = os.path.abspath(os.path.dirname(__file__))\n"
21 "app = flask.Flask(__name__)\n"
22 )
23 purge_module("config_module_app")
24
25 from config_module_app import app
26
27 assert app.instance_path == os.fspath(modules_tmp_path / "instance")
28
29
30def test_uninstalled_package_paths(modules_tmp_path, purge_module):

Callers

nothing calls this directly

Calls 1

purge_moduleFunction · 0.85

Tested by

no test coverage detected