summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2013-01-10 13:56:44 -0500
committerRyan Petrello <lists@ryanpetrello.com>2013-01-10 13:56:44 -0500
commit4d3ff312e8edc120b0190ac185eefe930c4f53ba (patch)
tree29a44be186363de8e989cf22ef5eed848cf3e115
parent83d2f23b409118f8fd97087b892c355c3abfcad9 (diff)
downloadpecan-4d3ff312e8edc120b0190ac185eefe930c4f53ba.tar.gz
A big of refactoring for the ``$ gunicorn_pecan`` tests.
-rw-r--r--pecan/tests/test_scaffolds.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pecan/tests/test_scaffolds.py b/pecan/tests/test_scaffolds.py
index bde8f24..1711337 100644
--- a/pecan/tests/test_scaffolds.py
+++ b/pecan/tests/test_scaffolds.py
@@ -372,14 +372,14 @@ class TestGunicornServeCommand(TestTemplateBuilds):
super(TestGunicornServeCommand, self).create_virtualenv()
# Install gunicorn
- self.gunicorn_exe = self.install_dependency('gunicorn')
+ self.install_dependency('gunicorn')
- def install_dependency(self, name):
- return super(
- TestGunicornServeCommand,
- self
- ).install_dependency(name).replace(
- 'gunicorn', 'gunicorn_pecan'
+ @property
+ def gunicorn_exe(self):
+ return os.path.join(
+ self.install_dir,
+ 'bin',
+ 'gunicorn_pecan'
)
def poll_gunicorn(self, proc, port):