Commit 39809606 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[test] Use a WSGI cubicweb server

We replace CubicWebServerTC, which uses Twisted, by CubicWebWsgiTC.
In particular, the latter will work on Python 3 whereas this is not
supported in the former.
parent 4b8a7b178b86
...@@ -18,10 +18,10 @@ import json ...@@ -18,10 +18,10 @@ import json
import urlparse import urlparse
import requests import requests
from cubicweb.devtools.httptest import CubicWebServerTC from cubicweb.devtools.httptest import CubicWebWsgiTC
class RqlIOTC(CubicWebServerTC): class RqlIOTC(CubicWebWsgiTC):
def setup_database(self): def setup_database(self):
with self.admin_access.client_cnx() as cnx: with self.admin_access.client_cnx() as cnx:
...@@ -5,7 +5,6 @@ envlist = py27,flake8 ...@@ -5,7 +5,6 @@ envlist = py27,flake8
deps = deps =
pytest pytest
requests>=1.2 requests>=1.2
Twisted < 16.0.0
commands = commands =
{envpython} -m pytest test {posargs} {envpython} -m pytest test {posargs}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment