This commit is contained in:
debugtalk
2017-09-11 23:48:57 +08:00
5 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ class Context(object):
self.import_module_items(["ate.built_in"], "testset")
def import_requires(self, modules):
""" import required modules dynamicly
""" import required modules dynamically
"""
for module_name in modules:
globals()[module_name] = utils.get_imported_module(module_name)

View File

@@ -18,7 +18,7 @@ class ApiTestCase(unittest.TestCase):
def create_suite(testset):
""" create test suite with a testset, it may include one or several testcases.
each suite should initialize a seperate Runner() with testset config.
each suite should initialize a separate Runner() with testset config.
"""
suite = unittest.TestSuite()

View File

@@ -57,7 +57,7 @@ def load_testcases(testcase_file_path):
# '' or other suffix
return []
def load_foler_files(folder_path, match_filter_list=["*"]):
def load_folder_files(folder_path, match_filter_list=["*"]):
""" load folder path, return all files in list format.
"""
file_list = []
@@ -99,7 +99,7 @@ def load_testcases_by_path(path):
path = os.path.join(os.getcwd(), path)
if os.path.isdir(path):
files_list = load_foler_files(path, ["*.yml", "*.yaml", "*.json"])
files_list = load_folder_files(path, ["*.yml", "*.yaml", "*.json"])
return load_testcases_by_path(files_list)
elif os.path.isfile(path):