1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Fix tests

This commit is contained in:
Julien Duponchelle 2016-08-17 11:05:16 +02:00
parent 4d8cf8460e
commit 938696032c
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
3 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ import io
import struct
from xml.etree.ElementTree import ElementTree
def get_size(data, default_width=0, default_height=0):
"""
Get image size
@ -26,7 +27,6 @@ def get_size(data, default_width=0, default_height=0):
:return: Tuple (width, height, filetype)
"""
height = default_height
width = default_width
filetype = None
@ -106,6 +106,7 @@ def get_size(data, default_width=0, default_height=0):
return width, height, filetype
def _svg_convert_size(size):
"""
Convert svg size to the px version

View File

@ -66,7 +66,7 @@ def test_json(tmpdir):
"status": "opened",
"filename": "Test.gns3",
"auto_start": False,
"auto_close": False,
"auto_close": True,
"auto_open": False
}

View File

@ -35,7 +35,7 @@ def test_project_to_topology_empty(tmpdir):
"project_id": project.id,
"name": "Test",
"auto_start": False,
"auto_close": False,
"auto_close": True,
"auto_open": False,
"revision": 5,
"topology": {