pull/638/head
Julien Duponchelle 8 years ago
parent 4d8cf8460e
commit 938696032c
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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

@ -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
}

@ -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": {

Loading…
Cancel
Save