2019-11-11 19:06:11 +01:00
|
|
|
from wo.utils import test
|
|
|
|
|
from wo.cli.main import WOTestApp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CliTestCaseSiteDelete(test.WOTestCase):
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_detele(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'delete', 'html.com',
|
|
|
|
|
'--force']) as app:
|
2019-11-11 19:06:11 +01:00
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_detele_all(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'delete', 'wp.com',
|
|
|
|
|
'--all', '--force']) as app:
|
2019-11-11 19:06:11 +01:00
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_detele_db(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'delete', 'mysql.com',
|
|
|
|
|
'--db', '--force']) as app:
|
2019-11-11 19:06:11 +01:00
|
|
|
app.run()
|
|
|
|
|
|
|
|
|
|
def test_wo_cli_site_detele_files(self):
|
2019-12-03 19:48:18 +01:00
|
|
|
with WOTestApp(argv=['site', 'delete', 'php.com',
|
|
|
|
|
'--files', '--force']) as app:
|
2019-11-11 19:06:11 +01:00
|
|
|
app.run()
|