Remove trailing references to MycroftSkill.emitter (#1768)
- references in skill_tester.py - when going through the methods to check for decorations the emitter was triggered and generated a Warningpull/1665/merge
parent
413bee6090
commit
787ff63d2b
|
@ -520,7 +520,8 @@ class MycroftSkill(object):
|
|||
Looks for all functions that have been marked by a decorator
|
||||
and read the intent data from them
|
||||
"""
|
||||
for attr_name in dir(self):
|
||||
attributes = [a for a in dir(self) if not a == 'emitter']
|
||||
for attr_name in attributes:
|
||||
method = getattr(self, attr_name)
|
||||
|
||||
if hasattr(method, 'intents'):
|
||||
|
|
|
@ -310,7 +310,7 @@ class SkillTest(object):
|
|||
# and be handled one by one. We cant make assumptions about threading
|
||||
# in the core or the skill
|
||||
q = Queue()
|
||||
s.emitter.q = q
|
||||
s.bus.q = q
|
||||
|
||||
# Set up context before calling intent
|
||||
# This option makes it possible to better isolate (reduce dependance)
|
||||
|
@ -360,7 +360,7 @@ class SkillTest(object):
|
|||
break
|
||||
|
||||
# Stop emmiter from sending on queue
|
||||
s.emitter.q = None
|
||||
s.bus.q = None
|
||||
|
||||
# remove the skill which is not responding
|
||||
self.emitter.remove_all_listeners('speak')
|
||||
|
|
Loading…
Reference in New Issue