Skip to content

Commit

Permalink
Add test case: test_report_available_mirrors to test that print the…
Browse files Browse the repository at this point in the history
… available mirrors to the terminal.
  • Loading branch information
martin68 committed Sep 12, 2019
1 parent 9f48fc4 commit 73959f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apt_mirror_updater/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def test_current_mirror_discovery(self):
assert exit_code == 0
check_mirror_url(output.strip())

def test_report_available_mirrors(self):
"""Test that print the available mirrors to the terminal."""
exit_code, output = run_cli(main, '--list-mirrors')
assert exit_code == 0

def test_dumb_update(self):
"""Test that our dumb ``apt-get update`` wrapper works."""
if os.getuid() != 0:
Expand Down

0 comments on commit 73959f3

Please sign in to comment.