Sort test cases so order is enforced
parent
d99377dc78
commit
e7a6a20967
|
@ -38,7 +38,7 @@ def discover_tests(skills_dir):
|
|||
tests = {}
|
||||
skills = [
|
||||
skill for skill
|
||||
in glob.glob(skills_dir + '/*')
|
||||
in sorted(glob.glob(skills_dir + '/*'))
|
||||
if os.path.isdir(skill)
|
||||
]
|
||||
|
||||
|
@ -54,7 +54,8 @@ def discover_tests(skills_dir):
|
|||
# Find all intent test files
|
||||
test_intent_files = [
|
||||
(f, test_env) for f
|
||||
in glob.glob(os.path.join(skill, 'test/intent/*.intent.json'))
|
||||
in sorted(
|
||||
glob.glob(os.path.join(skill, 'test/intent/*.intent.json')))
|
||||
]
|
||||
if len(test_intent_files) > 0:
|
||||
tests[skill] = test_intent_files
|
||||
|
|
|
@ -51,7 +51,8 @@ def discover_tests():
|
|||
# Find intent tests
|
||||
test_intent_files = [
|
||||
f for f
|
||||
in glob.glob(os.path.join(skill, 'test/intent/*.intent.json'))
|
||||
in sorted(
|
||||
glob.glob(os.path.join(skill, 'test/intent/*.intent.json')))
|
||||
]
|
||||
if len(test_intent_files) > 0:
|
||||
tests[skill] = test_intent_files
|
||||
|
|
|
@ -48,7 +48,8 @@ def discover_tests():
|
|||
for skill in skills:
|
||||
test_intent_files = [
|
||||
f for f
|
||||
in glob.glob(os.path.join(skill, 'test/intent/*.intent.json'))
|
||||
in sorted(
|
||||
glob.glob(os.path.join(skill, 'test/intent/*.intent.json')))
|
||||
]
|
||||
if len(test_intent_files) > 0:
|
||||
tests[skill] = test_intent_files
|
||||
|
|
Loading…
Reference in New Issue