mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 10:10:30 +03:00
parent
8daf273843
commit
17f6a778ba
12 changed files with 85 additions and 96 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue