From b264aef126e4f9f1aabab7d190a83246fc6574fb Mon Sep 17 00:00:00 2001 From: Gael Pasgrimaud Date: Thu, 6 Dec 2012 02:47:53 +0100 Subject: use distribute --- tests/bootstrap.sh | 2 +- tests/test_casperjs.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/bootstrap.sh b/tests/bootstrap.sh index 011a14a..0c6061e 100755 --- a/tests/bootstrap.sh +++ b/tests/bootstrap.sh @@ -1,6 +1,6 @@ #!/bin/bash if ! [ -x bin/casperjs ]; then - python2.7 bootstrap.py + python2.7 bootstrap.py -d bin/buildout install casperjs fi diff --git a/tests/test_casperjs.py b/tests/test_casperjs.py index 4980fed..c3c75d5 100644 --- a/tests/test_casperjs.py +++ b/tests/test_casperjs.py @@ -4,7 +4,6 @@ import os import webob import webtest from webob import exc -from webtest import ext from tests.compat import u #if PY3: @@ -49,5 +48,5 @@ def application(environ, start_response): def test_casperjs(): app = webtest.TestApp(application) - with webtest.casperjs(app) as run: + with webtest.casperjs(app, timeout=2) as run: run('test_casperjs.js') -- cgit v1.2.1