Refactored
This commit is contained in:
66
tests/cli/8_test_site_create.py
Normal file
66
tests/cli/8_test_site_create.py
Normal file
@@ -0,0 +1,66 @@
|
||||
from wo.utils import test
|
||||
from wo.cli.main import get_test_app
|
||||
|
||||
|
||||
class CliTestCaseSite(test.WOTestCase):
|
||||
|
||||
def test_wo_cli(self):
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_html(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example1.com',
|
||||
'--html'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_php(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example2.com',
|
||||
'--php'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_mysql(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example3.com',
|
||||
'--mysql'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_wp(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example4.com',
|
||||
'--wp'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_wpsubdir(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example5.com',
|
||||
'--wpsubdir'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_wpsubdomain(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example6.com',
|
||||
'--wpsubdomain'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_wpfc(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example8.com',
|
||||
'--wpfc'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
|
||||
def test_wo_cli_site_create_wpsc(self):
|
||||
self.app = get_test_app(argv=['site', 'create', 'example9.com',
|
||||
'--wpsc'])
|
||||
self.app.setup()
|
||||
self.app.run()
|
||||
self.app.close()
|
||||
Reference in New Issue
Block a user