You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
10 years ago
|
from ee.utils import test
|
||
|
from ee.cli.main import get_test_app
|
||
|
|
||
|
|
||
|
class CliTestCaseSite(test.EETestCase):
|
||
|
|
||
|
def test_ee_cli(self):
|
||
|
self.app.setup()
|
||
|
self.app.run()
|
||
|
self.app.close()
|
||
|
|
||
|
def test_ee_cli_site_detele(self):
|
||
10 years ago
|
self.app = get_test_app(argv=['site', 'delete', 'example1.com',
|
||
10 years ago
|
'--no-prompt'])
|
||
|
self.app.setup()
|
||
|
self.app.run()
|
||
|
self.app.close()
|
||
|
|
||
|
def test_ee_cli_site_detele_all(self):
|
||
10 years ago
|
self.app = get_test_app(argv=['site', 'delete', 'example2.com',
|
||
10 years ago
|
'--all'])
|
||
|
self.app.setup()
|
||
|
self.app.run()
|
||
|
self.app.close()
|
||
|
|
||
|
def test_ee_cli_site_detele_db(self):
|
||
10 years ago
|
self.app = get_test_app(argv=['site', 'delete', 'example3.com',
|
||
10 years ago
|
'--db'])
|
||
|
self.app.setup()
|
||
|
self.app.run()
|
||
|
self.app.close()
|
||
|
|
||
|
def test_ee_cli_site_detele_files(self):
|
||
10 years ago
|
self.app = get_test_app(argv=['site', 'delete', 'example4.com',
|
||
10 years ago
|
'--files'])
|
||
|
self.app.setup()
|
||
|
self.app.run()
|
||
|
self.app.close()
|