From 976cf5a874ed3222e4cace876765e55df2fcd598 Mon Sep 17 00:00:00 2001 From: "shital.rtcamp" Date: Tue, 23 Dec 2014 15:48:59 +0530 Subject: [PATCH] test case --- tests/cli/test_stack.py | 76 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 tests/cli/test_stack.py diff --git a/tests/cli/test_stack.py b/tests/cli/test_stack.py new file mode 100644 index 00000000..a108e594 --- /dev/null +++ b/tests/cli/test_stack.py @@ -0,0 +1,76 @@ +from ee.utils import test +from ee.cli.main import get_test_app + + +class CliTestCaseStack(test.EETestCase): + + def test_ee_cli(self): + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_cli_stack_install_web(self): + self.app = get_test_app(argv=['stack', 'install', '--web']) + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_cli_stack_install_admin(self): + self.app = get_test_app(argv=['stack', 'install', '--admin']) + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_cli_stack_install_mail(self): + self.app = get_test_app(argv=['stack', 'install', '--mail']) + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_cli_stack_install_nginx(self): + self.app = get_test_app(argv=['stack', 'install', '--nginx']) + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_cli_stack_install_php(self): + self.app = get_test_app(argv=['stack', 'install', '--php']) + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_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_ee_cli_stack_install_postfix(self): + self.app = get_test_app(argv=['stack', 'install', '--postfix']) + self.app.setup() + self.app.run() + self.app.close() + + def test_ee_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_ee_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_ee_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_ee_cli_stack_install_utils(self): + self.app = get_test_app(argv=['stack', 'install', '--utils']) + self.app.setup() + self.app.run() + self.app.close()