mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Fix tests
This commit is contained in:
parent
4d8cf8460e
commit
938696032c
@ -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…
Reference in New Issue
Block a user