mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-24 06:56:42 +00:00
Fix tests
This commit is contained in:
parent
54eb8d9e81
commit
c30f7ce9a1
@ -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"
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user