Browse Source

Output Handler Mustache

bugfixes
harshadyeola 10 years ago
parent
commit
6a1f7bd2cb
  1. 1
      ee/cli/templates/default.mustache
  2. 20
      tests/cli/test_ee.py

1
ee/cli/templates/default.mustache

@ -0,0 +1 @@
Inside {{foo}}

20
tests/cli/test_ee.py

@ -11,55 +11,57 @@ class CliTestCase(test.EETestCase):
self.app.close()
def test_ee_cli_site_create(self):
app = get_test_app(argv=['site', 'create', 'example.com'])
self.app = get_test_app(argv=['site', 'create', 'example.com'])
self.app.setup()
self.app.run()
data, output = self.app.last_rendered
self.eq(output, 'Inside EESiteCreateController.default().\n')
self.app.close()
def test_ee_cli_site_update(self):
app = get_test_app(argv=['site', 'update', 'example.com'])
self.app = get_test_app(argv=['site', 'update', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_delete(self):
app = get_test_app(argv=['site', 'delete', 'example.com'])
self.app = get_test_app(argv=['site', 'delete', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_cd(self):
app = get_test_app(argv=['site', 'cd', 'example.com'])
self.app = get_test_app(argv=['site', 'cd', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_log(self):
app = get_test_app(argv=['site', 'log', 'example.com'])
self.app = get_test_app(argv=['site', 'log', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_info(self):
app = get_test_app(argv=['site', 'info', 'example.com'])
self.app = get_test_app(argv=['site', 'info', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_enable(self):
app = get_test_app(argv=['site', 'enable', 'example.com'])
self.app = get_test_app(argv=['site', 'enable', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_disable(self):
app = get_test_app(argv=['site', 'disable', 'example.com'])
self.app = get_test_app(argv=['site', 'disable', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()
def test_ee_cli_site_edit(self):
app = get_test_app(argv=['site', 'edit', 'example.com'])
self.app = get_test_app(argv=['site', 'edit', 'example.com'])
self.app.setup()
self.app.run()
self.app.close()

Loading…
Cancel
Save