2019-11-11 19:06:11 +01:00
|
|
|
from wo.utils import test
|
|
|
|
|
from wo.cli.main import WOTestApp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CliTestCaseSiteCreate(test.WOTestCase):
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_html(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'html.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--html']) as app:
|
|
|
|
|
app.config.set('wo', '', True)
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_php(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'php.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--php']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_mysql(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'mysql.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--mysql']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wp(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'wp.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--wp']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wpsubdir(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'wpsubdir.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--wpsubdir']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wpsubdomain(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'wpsubdomain.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--wpsubdomain']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wpfc(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'wpfc.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--wpfc']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wpsc(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'create', 'wpsc.com',
|
2019-11-11 19:06:11 +01:00
|
|
|
'--wpsc']) as app:
|
|
|
|
|
app.run()
|
2019-12-03 19:48:18 +01:00
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wpce(self):
|
|
|
|
|
with WOTestApp(argv=['site', 'create', 'wpce.com',
|
|
|
|
|
'--wpce']) as app:
|
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_create_wprocket(self):
|
|
|
|
|
with WOTestApp(argv=['site', 'create', 'wprocket.com',
|
|
|
|
|
'--wprocket']) as app:
|
|
|
|
|
app.run()
|