We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48621c9 commit d3dc3faCopy full SHA for d3dc3fa
unittests/test_mirrors.py
@@ -57,7 +57,17 @@ def test_mirror_init_bad_url(systems_path):
57
path = systems_path / "mirror-bad-url"
58
59
with pytest.raises(mirror.MirrorError):
60
- mirrors_obj = mirror.Mirrors(path)
+ mirror.Mirrors(path)
61
+
62
+def test_setup_configs(tmp_path, systems_path):
63
+ """Test general config setup."""
64
65
+ mir = mirror.Mirrors(systems_path/'mirror-ok')
66
+ mir.setup_configs(tmp_path)
67
68
+ assert (tmp_path/'mirrors.yaml').is_file()
69
+ assert (tmp_path/'bootstrap').is_dir()
70
+ assert (tmp_path/'key_store').is_dir()
71
72
def test_command_line_cache(systems_path):
73
"""Check that adding a cache from the command line works."""
0 commit comments