1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +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 import struct
from xml.etree.ElementTree import ElementTree from xml.etree.ElementTree import ElementTree
def get_size(data, default_width=0, default_height=0): def get_size(data, default_width=0, default_height=0):
""" """
Get image size Get image size
@ -26,7 +27,6 @@ def get_size(data, default_width=0, default_height=0):
:return: Tuple (width, height, filetype) :return: Tuple (width, height, filetype)
""" """
height = default_height height = default_height
width = default_width width = default_width
filetype = None filetype = None
@ -106,6 +106,7 @@ def get_size(data, default_width=0, default_height=0):
return width, height, filetype return width, height, filetype
def _svg_convert_size(size): def _svg_convert_size(size):
""" """
Convert svg size to the px version Convert svg size to the px version

View File

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

View File

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