Use generic symbol names

This commit is contained in:
grossmj committed 2022-07-25 12:33:40 +02:00
1 parent b7f4a4cbda
commit bfbac2e93a
15 files changed
+70 -44

No files matched your search

+10 -1
View File
@@ -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()