Fix single_test.py

Update metaclass declaration to python3 syntax
pull/1527/head
Åke Forslund 2018-05-21 15:42:16 +02:00
parent 580c053e22
commit b9cb58be79
1 changed files with 1 additions and 3 deletions

View File

@ -81,7 +81,6 @@ class IntentTestSequenceMeta(type):
return test_env_test
else:
return test
tests, test_envs = discover_tests()
for skill in tests.keys():
skill_name = os.path.basename(skill) # Path of the skill
@ -97,10 +96,9 @@ class IntentTestSequenceMeta(type):
return type.__new__(mcs, name, bases, d)
class IntentTestSequence(unittest.TestCase):
class IntentTestSequence(unittest.TestCase, metaclass=IntentTestSequenceMeta):
"""This is the TestCase class that pythons unit tester can execute.
"""
__metaclass__ = IntentTestSequenceMeta
loader = None
@classmethod