diff --git a/test/__init__.py b/test/__init__.py index adc414a..8980dd2 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -10,7 +10,7 @@ __author__ = "Sergey Vartanov" __email__ = "me@enzet.ru" SCHEME: Scheme = Scheme(Path("scheme/default.yml")) -SCHEME_EXTRACTOR: ShapeExtractor = ShapeExtractor( +SHAPE_EXTRACTOR: ShapeExtractor = ShapeExtractor( Path("icons/icons.svg"), Path("icons/config.json") ) diff --git a/test/test_icons.py b/test/test_icons.py index 8b8e203..64c011d 100644 --- a/test/test_icons.py +++ b/test/test_icons.py @@ -6,7 +6,7 @@ from typing import Dict from roentgen.icon import IconSet from roentgen.grid import draw_all_icons -from test import SCHEME, SCHEME_EXTRACTOR +from test import SCHEME, SHAPE_EXTRACTOR __author__ = "Sergey Vartanov" __email__ = "me@enzet.ru" @@ -17,14 +17,14 @@ def test_icons() -> None: Test grid drawing. """ makedirs("icon_set", exist_ok=True) - draw_all_icons(SCHEME, SCHEME_EXTRACTOR, "temp.svg", "icon_set") + draw_all_icons(SCHEME, SHAPE_EXTRACTOR, "temp.svg", "icon_set") def get_icon(tags: Dict[str, str]) -> IconSet: """ Construct icon from tags. """ - icon, _ = SCHEME.get_icon(SCHEME_EXTRACTOR, tags) + icon, _ = SCHEME.get_icon(SHAPE_EXTRACTOR, tags) return icon