mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 23:41:22 +08:00
fix: unittest
This commit is contained in:
@@ -383,7 +383,7 @@ def create_scaffold(project_name):
|
|||||||
logger.color_print(msg, "BLUE")
|
logger.color_print(msg, "BLUE")
|
||||||
|
|
||||||
def create_file(path, file_content=""):
|
def create_file(path, file_content=""):
|
||||||
with io.open(path, 'w', encoding='utf-8') as f:
|
with open(path, 'w') as f:
|
||||||
f.write(file_content)
|
f.write(file_content)
|
||||||
msg = "created file: {}".format(path)
|
msg = "created file: {}".format(path)
|
||||||
logger.color_print(msg, "BLUE")
|
logger.color_print(msg, "BLUE")
|
||||||
|
|||||||
Reference in New Issue
Block a user