diff --git a/test_poetry.py b/test_poetry.py index aecdabf..7647499 100644 --- a/test_poetry.py +++ b/test_poetry.py @@ -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():