1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Rotation for label of interfaces

This commit is contained in:
Julien Duponchelle 2016-07-01 19:54:44 +02:00
parent fea1e3ba61
commit 5bf6011429
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class Link:
label = {
"x": -10,
"y": -10,
"rotation": 0,
"text": "{}/{}".format(adapter_number, port_number),
"style": "font-size: 10; font-style: Verdana"
}

View File

@ -66,6 +66,7 @@ def test_add_node(async_run, project, compute):
'y': -10,
'text': '0/4',
'x': -10,
'rotation': 0,
'style': 'font-size: 10; font-style: Verdana'
}
}
@ -89,6 +90,7 @@ def test_update_node(async_run, project, compute):
'y': -42,
'text': '0/4',
'x': -10,
'rotation': 0,
'style': 'font-size: 10; font-style: Verdana'
}
project.dump = AsyncioMagicMock()
@ -118,6 +120,7 @@ def test_json(async_run, project, compute):
'y': -10,
'text': '0/4',
'x': -10,
'rotation': 0,
'style': 'font-size: 10; font-style: Verdana'
}
},
@ -129,6 +132,7 @@ def test_json(async_run, project, compute):
'y': -10,
'text': '1/3',
'x': -10,
'rotation': 0,
'style': 'font-size: 10; font-style: Verdana'
}
}
@ -148,6 +152,7 @@ def test_json(async_run, project, compute):
'y': -10,
'text': '0/4',
'x': -10,
'rotation': 0,
'style': 'font-size: 10; font-style: Verdana'
}
},
@ -159,6 +164,7 @@ def test_json(async_run, project, compute):
'y': -10,
'text': '1/3',
'x': -10,
'rotation': 0,
'style': 'font-size: 10; font-style: Verdana'
}
}