Fix tests

This commit is contained in:
Julien Duponchelle 2015-01-20 19:23:35 +01:00
parent 54eb8d9e81
commit c30f7ce9a1
2 changed files with 1 additions and 8 deletions

View File

@ -19,5 +19,5 @@ X-ROUTE: /vpcs
"console": 2000,
"name": "PC TEST 1",
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"uuid": "0adee348-1ce4-417b-9b5c-ff96f62ce35a"
"uuid": "6373ecfa-a186-48de-be4d-3f3463d2e23c"
}

View File

@ -51,13 +51,6 @@ def test_version_invalid_input_schema(server):
assert response.status == 400
def test_version_invalid_output_schema(server):
with asyncio_patch("gns3server.handlers.version_handler.VersionHandler", return_value={}):
query = {'version': __version__}
response = server.post('/version', query)
assert response.status == 400
def test_version_invalid_json(server):
query = "BOUM"
response = server.post('/version', query, raw=True)