Skip to content

Commit d3dc3fa

Browse files
committed
Added one more unittest.
1 parent 48621c9 commit d3dc3fa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

unittests/test_mirrors.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@ def test_mirror_init_bad_url(systems_path):
5757
path = systems_path / "mirror-bad-url"
5858

5959
with pytest.raises(mirror.MirrorError):
60-
mirrors_obj = mirror.Mirrors(path)
60+
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()
6171

6272
def test_command_line_cache(systems_path):
6373
"""Check that adding a cache from the command line works."""

0 commit comments

Comments
 (0)