[UPDATE] 修复单元测试BUG
This commit is contained in:
@ -7,14 +7,14 @@
|
||||
|
||||
import os, json
|
||||
|
||||
def check_json(json):
|
||||
filepath = os.path.join('./json', json)
|
||||
def check_json(f):
|
||||
filepath = os.path.join('./json', f)
|
||||
with open(filepath) as file:
|
||||
try:
|
||||
_ = json.loads(file.read())
|
||||
return True
|
||||
except:
|
||||
assert False, "校验(%s)失败" % json
|
||||
assert False, "校验(%s)失败" % f
|
||||
|
||||
|
||||
def test_json():
|
||||
|
||||
Reference in New Issue
Block a user