From 4d3ff312e8edc120b0190ac185eefe930c4f53ba Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 10 Jan 2013 13:56:44 -0500 Subject: [PATCH] A big of refactoring for the ``$ gunicorn_pecan`` tests. --- pecan/tests/test_scaffolds.py | 14 +++++++------- 1 file 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):