Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed Aug 17, 2016
1 parent 4d8cf84 commit 9386960
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gns3server/utils/picture.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
import struct
from xml.etree.ElementTree import ElementTree


def get_size(data, default_width=0, default_height=0):
"""
Get image size
:param data: A buffer with image content
:return: Tuple (width, height, filetype)
"""


height = default_height
width = default_width
filetype = None
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/controller/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion tests/controller/test_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 9386960

Please sign in to comment.