deploy: move server.py to deploy.py and remove aliases

closes #832
This commit is contained in:
Hans-Christoph Steiner 2020-10-21 09:52:58 +02:00
parent 8daf273843
commit 17f6a778ba
12 changed files with 85 additions and 96 deletions

View file

@ -42,7 +42,6 @@ class MainTest(unittest.TestCase):
'lint',
'scanner',
'stats',
'server',
'signindex',
'btlog',
'signatures',
@ -63,7 +62,7 @@ class MainTest(unittest.TestCase):
def test_call_deploy(self):
co = mock.Mock()
with mock.patch('sys.argv', ['', 'deploy', '-h']):
with mock.patch('fdroidserver.server.main', co):
with mock.patch('fdroidserver.deploy.main', co):
with mock.patch('sys.exit') as exit_mock:
fdroidserver.__main__.main()
# note: this is sloppy, if `deploy` changes