MCPcopy Create free account
hub / github.com/conda/constructor / test_example_mirrored_channels

Function test_example_mirrored_channels

tests/test_examples.py:776–798  ·  view source on GitHub ↗
(tmp_path, request)

Source from the content-addressed store, hash-verified

774
775
776def 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(

Callers

nothing calls this directly

Calls 3

_example_pathFunction · 0.85
create_installerFunction · 0.85
_run_installerFunction · 0.85

Tested by

no test coverage detected