Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10)

Unified Diff: tests/test_utils.py

Issue 12741051: GUI server: bundles support integration.
Patch Set: GUI server: bundles support integration. Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/test_backends.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_utils.py
=== modified file 'tests/test_utils.py'
--- tests/test_utils.py 2013-08-09 13:30:49 +0000
+++ tests/test_utils.py 2013-08-23 11:00:21 +0000
@@ -33,6 +33,7 @@
API_PORT,
JUJU_GUI_DIR,
JUJU_PEM,
+ SERVER_DEPENDENCIES,
WEB_PORT,
_get_by_attr,
cmd_log,
@@ -46,7 +47,6 @@
parse_source,
get_npm_cache_archive_url,
install_builtin_server,
- install_tornado,
remove_apache_setup,
remove_haproxy_setup,
render_to_file,
@@ -722,13 +722,11 @@
self.assertEqual(self.service_names, ['haproxy', 'apache2'])
self.assertEqual(self.actions, [charmhelpers.STOP, charmhelpers.STOP])
- def test_install_tornado(self):
- install_tornado()
- self.assertEqual(self.run_call_count, 1)
-
def test_install_builtin_server(self):
install_builtin_server()
- self.assertEqual(self.run_call_count, 1)
+ # The function executes one "pip install" call for each dependency, and
+ # a final "python setup.py" call for the GUI server itself.
+ self.assertEqual(self.run_call_count, len(SERVER_DEPENDENCIES) + 1)
def test_write_builtin_server_startup(self):
write_builtin_server_startup(
« no previous file with comments | « tests/test_backends.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b