print warning message when no testcase found

This commit is contained in:
httprunner
2018-03-21 14:21:50 +08:00
parent 4879330b14
commit 1ca78b7f53
3 changed files with 5 additions and 1 deletions

View File

@@ -485,6 +485,9 @@ def load_test_file(file_path):
api_info.update(item["api"])
testset["api"][func_name] = api_info
else:
logger.log_warning("unexpected block: {}. block should only be config or test.".format(key))
return testset
def get_testinfo_by_reference(ref_name, ref_type):