Skip to content

Commit

Permalink
[UPDATE] 修复单元测试BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
高俊奇 committed May 26, 2017
1 parent 001ec8d commit 0d4fc18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 0d4fc18

Please sign in to comment.