Fix tests

This commit is contained in:
Julien Duponchelle committed 2016-08-17 11:05:16 +02:00
1 parent 4d8cf8460e
commit 938696032c
3 files changed
+4 -3

No files matched your search

+2 -1
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
+1 -1
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
}
+1 -1
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": {