Encapsulate config constants in Config class

This commit is contained in:
John Helmert
2019-07-01 19:10:18 -05:00
parent 17a17f12d5
commit 491e652470
4 changed files with 150 additions and 150 deletions

View File

@@ -8,7 +8,7 @@ from tempfile import mkdtemp, NamedTemporaryFile
import pytest
from tuir.theme import Theme
from tuir.config import DEFAULT_THEMES
from tuir.config import Config
from tuir.exceptions import ConfigError
try:
@@ -115,7 +115,7 @@ def test_theme_element_selected_attributes():
def test_theme_default_cfg_matches_builtin():
filename = os.path.join(DEFAULT_THEMES, 'default.cfg.example')
filename = os.path.join(Config.DEFAULT_THEMES, 'default.cfg.example')
default_theme = Theme.from_file(filename, 'built-in')
# The default theme file should match the hardcoded values