mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-19 15:53:47 +00:00
Download custom appliance symbols from GitHub
Fix symbol cache issue. Ref https://github.com/GNS3/gns3-gui/issues/2671 Fix temporary directory for symbols was not deleted Fix temporary appliance file was not deleted
This commit is contained in:
@ -259,16 +259,15 @@ def test_symbol(node, symbols_dir, controller):
|
||||
Change symbol should change the node size
|
||||
"""
|
||||
|
||||
controller.symbols.theme = "Classic"
|
||||
node.symbol = ":/symbols/dslam.svg"
|
||||
assert node.symbol == ":/symbols/dslam.svg"
|
||||
node.symbol = ":/symbols/classic/dslam.svg"
|
||||
assert node.symbol == ":/symbols/classic/dslam.svg"
|
||||
assert node.width == 50
|
||||
assert node.height == 53
|
||||
assert node.label["x"] is None
|
||||
assert node.label["y"] == -40
|
||||
|
||||
node.symbol = ":/symbols/cloud.svg"
|
||||
assert node.symbol == ":/symbols/cloud.svg"
|
||||
node.symbol = ":/symbols/classic/cloud.svg"
|
||||
assert node.symbol == ":/symbols/classic/cloud.svg"
|
||||
assert node.width == 159
|
||||
assert node.height == 71
|
||||
assert node.label["x"] is None
|
||||
|
Reference in New Issue
Block a user