(
limit_loader, modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages
)
| 97 | |
| 98 | |
| 99 | def test_prefix_package_paths( |
| 100 | limit_loader, modules_tmp_path, modules_tmp_path_prefix, purge_module, site_packages |
| 101 | ): |
| 102 | app = site_packages / "site_package" |
| 103 | app.mkdir() |
| 104 | (app / "__init__.py").write_text("import flask\napp = flask.Flask(__name__)\n") |
| 105 | purge_module("site_package") |
| 106 | |
| 107 | import site_package |
| 108 | |
| 109 | assert site_package.app.instance_path == os.fspath( |
| 110 | modules_tmp_path / "var" / "site_package-instance" |
| 111 | ) |
nothing calls this directly
no test coverage detected