2018-11-13 21:55:59 +01:00
|
|
|
from wo.utils import test
|
|
|
|
|
from wo.cli.main import get_test_app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CliTestCaseStack(test.WOTestCase):
|
|
|
|
|
|
|
|
|
|
def test_wo_cli(self):
|
2019-10-29 14:08:48 +01:00
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_stack_install_nginx(self):
|
2019-10-29 14:11:42 +01:00
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--nginx'])
|
2019-10-29 14:08:48 +01:00
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
2019-10-29 14:11:42 +01:00
|
|
|
def test_wo_cli_stack_install_php(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--php'])
|
2019-10-29 14:08:48 +01:00
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
2019-10-29 14:11:42 +01:00
|
|
|
def test_wo_cli_stack_install_php73(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--php73'])
|
2019-10-29 14:08:48 +01:00
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_stack_install_mysql(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--mysql'])
|
|
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_stack_install_wpcli(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--wpcli'])
|
|
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_stack_install_phpmyadmin(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--phpmyadmin'])
|
|
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_stack_install_adminer(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--adminer'])
|
|
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_stack_install_utils(self):
|
|
|
|
|
self.app = get_test_app(argv=['stack', 'install', '--utils'])
|
|
|
|
|
self.app.setup()
|
|
|
|
|
self.app.run()
|
|
|
|
|
self.app.close()
|