(tmp_path, request)
| 743 | |
| 744 | |
| 745 | def test_example_extra_envs(tmp_path, request): |
| 746 | input_path = _example_path("extra_envs") |
| 747 | for installer, install_dir in create_installer(input_path, tmp_path): |
| 748 | _run_installer(input_path, installer, install_dir, request=request, uninstall=False) |
| 749 | base = (install_dir / "base") if installer.suffix == ".msi" else install_dir |
| 750 | assert "@EXPLICIT" in (base / "conda-meta" / "initial-state.explicit.txt").read_text() |
| 751 | for env in base.glob("envs/*/conda-meta/"): |
| 752 | envtxt = env / "initial-state.explicit.txt" |
| 753 | assert envtxt.exists() |
| 754 | assert "@EXPLICIT" in envtxt.read_text() |
| 755 | |
| 756 | if sys.platform.startswith("win"): |
| 757 | if installer.suffix == ".msi": |
| 758 | _run_uninstaller_msi(installer, install_dir) |
| 759 | else: |
| 760 | _run_uninstaller_exe(install_dir=install_dir) |
| 761 | |
| 762 | |
| 763 | def test_example_extra_files(tmp_path, request): |
nothing calls this directly
no test coverage detected