Move old test to old_tests directory

This commit is contained in:
Julien Duponchelle 2015-01-14 11:43:23 +01:00
parent efad58a2af
commit aab944fb6c
31 changed files with 13 additions and 10 deletions

View File

@ -6,12 +6,12 @@ GET /version HTTP/1.1
HTTP/1.1 200
CONNECTION: close
CONTENT-LENGTH: 31
CONTENT-LENGTH: 29
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /version
{
"version": "1.2.2.dev2"
"version": "1.3.dev1"
}

View File

@ -1,19 +1,19 @@
curl -i -xPOST 'http://localhost:8000/version' -d '{"version": "1.2.2.dev2"}'
curl -i -xPOST 'http://localhost:8000/version' -d '{"version": "1.3.dev1"}'
POST /version HTTP/1.1
{
"version": "1.2.2.dev2"
"version": "1.3.dev1"
}
HTTP/1.1 200
CONNECTION: close
CONTENT-LENGTH: 31
CONTENT-LENGTH: 29
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /version
{
"version": "1.2.2.dev2"
"version": "1.3.dev1"
}

View File

@ -0,0 +1 @@
__all__ = ['version_handler', 'vpcs_handler']

View File

@ -33,9 +33,8 @@ from .web.route import Route
from .config import Config
from .modules import MODULES
#FIXME: have something generic to automatically import handlers so the routes can be found
from .handlers.version_handler import VersionHandler
from .handlers.vpcs_handler import VPCSHandler
#TODO: get rid of * have something generic to automatically import handlers so the routes can be found
from gns3server.handlers import *
import logging
log = logging.getLogger(__name__)

View File

@ -51,7 +51,7 @@ def test_version_invalid_input_schema(server):
assert response.status == 400
@asyncio_patch("demoserver.handlers.version_handler.VersionHandler", return_value={})
@asyncio_patch("gns3server.handlers.version_handler.VersionHandler", return_value={})
def test_version_invalid_output_schema():
query = {'version': "0.4.2"}
response = server.post('/version', query)

View File

@ -8,3 +8,6 @@ deps = -rdev-requirements.txt
[pep8]
ignore = E501
[pytest]
norecursedirs = old_tests