Fix TestSettings
Updates the settings to work with the new ones
@@ -42,7 +42,7 @@ from pyee import EventEmitter
from numbers import Number
from mycroft.messagebus.message import Message
from mycroft.skills.core import MycroftSkill, FallbackSkill
-from mycroft.skills.settings import SkillSettings
+from mycroft.skills.settings import Settings
from mycroft.skills.skill_loader import SkillLoader
from mycroft.configuration import Configuration
@@ -188,8 +188,8 @@ class InterceptEmitter(object):
pass
-class TestSettings(SkillSettings):
- """ SkillSettings instance without saving/loading capability.
+class TestSettings(Settings):
+ """ Settings instance without saving/loading capability.
"""
def save_skill_settings(self, skill_settings):
pass
@@ -336,7 +336,7 @@ class SkillTest(object):
def apply_test_settings(self, s, test_case):
"""Replace the skills settings with settings from the test_case."""
- s.settings = TestSettings('/tmp/', self.test_case_file)
+ s.settings = TestSettings(s)
for key in test_case['settings']:
s.settings[key] = test_case['settings'][key]
print(color.YELLOW, 'will run test with custom settings:',
