mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
bugfix: open file with utf-8 encoding
This commit is contained in:
@@ -32,11 +32,11 @@ def get_sign(*args):
|
||||
return sign
|
||||
|
||||
def load_yaml_file(yaml_file):
|
||||
with open(yaml_file, 'r+') as stream:
|
||||
with open(yaml_file, 'r+', encoding='utf-8') as stream:
|
||||
return yaml.load(stream)
|
||||
|
||||
def load_json_file(json_file):
|
||||
with open(json_file) as data_file:
|
||||
with open(json_file, encoding='utf-8') as data_file:
|
||||
return json.load(data_file)
|
||||
|
||||
def load_testcases(testcase_file_path):
|
||||
|
||||
Reference in New Issue
Block a user