diff --git a/.travis.yml b/.travis.yml index 9f2d284..903f898 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - - "2.7" - - "3.6" + - "3.7" install: - pip install flake8 -r requirements.txt before_script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics diff --git a/mengxue/qianjiashi.json b/mengxue/qianjiashi.json index 66b5647..b16ed0f 100644 --- a/mengxue/qianjiashi.json +++ b/mengxue/qianjiashi.json @@ -1717,7 +1717,7 @@ "穿花蛺蝶深深見,點水蜻蜓款款飛。", "傳與風光共流轉,暫時相賞莫相違。" ] - }, + } ] }, { diff --git a/requirements.txt b/requirements.txt index 7565aae..781d432 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pytest==3.1.0 +pytest==5.3.2 diff --git a/test_poetry.py b/test_poetry.py index c993c09..93f6aaa 100644 --- a/test_poetry.py +++ b/test_poetry.py @@ -1,5 +1,4 @@ -#! -*- coding: utf-8 -*- -# import sqlite3 +# -*- coding: utf-8 -*- import os import json import sys @@ -15,11 +14,11 @@ def check_json(f, _dir): with open(filepath) as file: try: _ = json.loads(file.read()) - print(u"%s 校验成功" % _dir) + sys.stdout.write(f"{filepath} 校验成功") return True except: - sys.stderr.write(traceback.format_exc()) - assert False, u"校验(%s)失败" % f + sys.stderr.write(traceback.format_exc()) + assert False, f"{filepath} 校验失败" def __check_path__(path): @@ -44,3 +43,6 @@ test_youmengying = functools.partial(__check_path__, u'./youmengying/') test_sishuwujing = functools.partial(__check_path__, u'./sishuwujing/') test_yuanqu = functools.partial(__check_path__, u'./yuanqu/') + +test_mengxue = functools.partial(__check_path__, u'./mengxue') +