added site lister

This commit is contained in:
Kevin Froman 2020-02-05 01:49:24 -06:00
parent 4487bf2806
commit 3456fae533
7 changed files with 47 additions and 4 deletions

View file

@ -1 +1 @@
1580861160
1580888911

View file

@ -16,5 +16,9 @@ class OnionrTests(unittest.TestCase):
testargs = ["onionr.py", "version"]
with patch.object(sys, 'argv', testargs):
parser.register()
def test_site_list(self):
testargs = ["onionr.py", "list-sites"]
with patch.object(sys, 'argv', testargs):
parser.register()
unittest.main()