(tmp_path, request)
| 774 | |
| 775 | |
| 776 | def test_example_mirrored_channels(tmp_path, request): |
| 777 | input_path = _example_path("mirrored_channels") |
| 778 | for installer, install_dir in create_installer(input_path, tmp_path): |
| 779 | _run_installer(input_path, installer, install_dir, request=request, uninstall=False) |
| 780 | |
| 781 | expected_condarc = { |
| 782 | "channels": ["conda-forge"], |
| 783 | "mirrored_channels": { |
| 784 | "conda-forge": [ |
| 785 | "https://conda.anaconda.org/conda-forge", |
| 786 | "https://conda.anaconda.org/mirror1", |
| 787 | "https://conda.anaconda.org/mirror2", |
| 788 | ] |
| 789 | }, |
| 790 | } |
| 791 | |
| 792 | condarc_file = install_dir / ".condarc" |
| 793 | assert condarc_file.exists() |
| 794 | |
| 795 | with open(condarc_file) as file: |
| 796 | condarc_data = YAML().load(file) |
| 797 | |
| 798 | assert condarc_data == expected_condarc |
| 799 | |
| 800 | |
| 801 | @pytest.mark.xfail( |
nothing calls this directly
no test coverage detected