13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 from __future__ import absolute_import, print_function |
|
19 |
|
20 import os, os.path as osp |
18 import os, os.path as osp |
21 import errno |
19 import errno |
22 import shutil |
20 import shutil |
23 from tempfile import mkdtemp |
21 from queue import Queue, Empty |
|
22 from tempfile import mkdtemp, TemporaryDirectory |
24 from subprocess import Popen, PIPE, STDOUT |
23 from subprocess import Popen, PIPE, STDOUT |
25 |
|
26 from six.moves.queue import Queue, Empty |
|
27 |
24 |
28 # imported by default to simplify further import statements |
25 # imported by default to simplify further import statements |
29 from logilab.common.testlib import Tags |
26 from logilab.common.testlib import Tags |
30 import webtest.http |
27 import webtest.http |
31 |
28 |
32 import cubicweb |
29 import cubicweb |
33 from cubicweb.view import View |
30 from cubicweb.view import View |
34 from cubicweb.web.controller import Controller |
31 from cubicweb.web.controller import Controller |
35 from cubicweb.web.views.staticcontrollers import StaticFileController, STATIC_CONTROLLERS |
32 from cubicweb.web.views.staticcontrollers import StaticFileController, STATIC_CONTROLLERS |
36 from cubicweb.devtools import webtest as cwwebtest |
33 from cubicweb.devtools import webtest as cwwebtest |
37 from cubicweb.devtools.testlib import TemporaryDirectory |
|
38 |
34 |
39 |
35 |
40 class FirefoxHelper(object): |
36 class FirefoxHelper(object): |
41 |
37 |
42 def __init__(self, url): |
38 def __init__(self, url): |