diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2013-01-10 13:56:44 -0500 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2013-01-10 13:56:44 -0500 |
commit | 4d3ff312e8edc120b0190ac185eefe930c4f53ba (patch) | |
tree | 29a44be186363de8e989cf22ef5eed848cf3e115 | |
parent | 83d2f23b409118f8fd97087b892c355c3abfcad9 (diff) | |
download | pecan-4d3ff312e8edc120b0190ac185eefe930c4f53ba.tar.gz |
A big of refactoring for the ``$ gunicorn_pecan`` tests.
-rw-r--r-- | pecan/tests/test_scaffolds.py | 14 |
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): |