(
modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages, limit_loader
)
| 63 | |
| 64 | |
| 65 | def 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 | |
| 80 | def test_installed_package_paths( |
nothing calls this directly
no test coverage detected