Refactored
This commit is contained in:
28
tests/cli/test_info.py
Normal file
28
tests/cli/test_info.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from wo.utils import test
|
||||
from wo.cli.main import get_test_app
|
||||
|
||||
|
||||
class CliTestCaseInfo(test.WOTestCase):
|
||||
|
||||
def test_wo_cli(self):
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_info_mysql(self):
|
||||
self.app = get_test_app(argv=['info', '--mysql'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_info_php(self):
|
||||
self.app = get_test_app(argv=['info', '--php'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_info_nginx(self):
|
||||
self.app = get_test_app(argv=['info', '--nginx'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
Reference in New Issue
Block a user