mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
Use generic symbol names
This commit is contained in:
1 parent
b7f4a4cbda
commit
bfbac2e93a
15 files changed
+70
-44
No files matched your search
@@ -17,8 +17,8 @@
|
||||
|
||||
import os
|
||||
|
||||
|
||||
from gns3server.controller.symbols import Symbols
|
||||
from gns3server.controller.symbol_themes import BUILTIN_SYMBOL_THEMES
|
||||
from gns3server.utils.get_resource import get_resource
|
||||
|
||||
|
||||
@@ -49,6 +49,15 @@ def test_get_path():
|
||||
assert symbols.get_path(':/symbols/classic/firewall.svg') == get_resource("symbols/classic/firewall.svg")
|
||||
|
||||
|
||||
def test_get_path_with_themed_symbols():
|
||||
|
||||
symbols = Symbols()
|
||||
for symbol_theme, symbols_table in BUILTIN_SYMBOL_THEMES.items():
|
||||
symbols.theme = symbol_theme
|
||||
for symbol_name, symbol_path in symbols_table.items():
|
||||
assert symbols.get_path(symbol_name) == get_resource(symbol_path[2:])
|
||||
|
||||
|
||||
def test_get_size():
|
||||
|
||||
symbols = Symbols()
|
||||
|
||||
Reference in new issue
Block a user