mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 22:39:42 +08:00
Merge branch 'master' of https://github.com/debugtalk/ApiTestEngine
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user