(modules_tmp_path, purge_module)
| 14 | |
| 15 | |
| 16 | def 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 | |
| 30 | def test_uninstalled_package_paths(modules_tmp_path, purge_module): |
nothing calls this directly
no test coverage detected