fix useless escape symbol

This commit is contained in:
Beichi-CHs 2021-11-19 00:26:42 +08:00
parent 040fb6fbbd
commit af641dd421
No known key found for this signature in database
GPG Key ID: E46962993205150E
4 changed files with 6 additions and 4 deletions

View File

@ -71,7 +71,7 @@ class WebsiteConfigAPITest(APITestCase):
"allow_register": True, "submission_list_show_all": False}
resp = self.client.post(url, data=data)
self.assertSuccess(resp)
self.assertEqual(SysOptions.website_footer, '<img src=\"#\" />')
self.assertEqual(SysOptions.website_footer, '<img src="#" />')
def test_get_website_config(self):
# do not need to login

View File

@ -15,7 +15,7 @@ jsonfield==3.1.0
mccabe==0.6.1
otpauth==1.0.1
Pillow==8.4.0
psycopg2-binary==2.9.2
psycopg2==2.9.2
pycodestyle==2.8.0
pyflakes==2.4.0
python-dateutil==2.8.2

View File

@ -6,7 +6,9 @@
"title": "2021-11-20",
"details": [
"django2.x即将停止支持更新django到3.x LTS相应地更新了全部相关依赖",
"合并底包版本到python3.8-alpine3.14为移除python2做准备"
"合并底包版本到python3.8-alpine3.14为移除python2做准备",
"按上游包的生产环境规范修改依赖psycopg2_binary为psycopg2",
"TODO:本地开发环境搭建文档应做相应修改和提交。"
]
},
{

View File

@ -21,7 +21,7 @@ print("running flake8...")
if os.system("flake8 --statistics ."):
exit()
ret = os.system('coverage run --include=\"$PWD/*\" manage.py test {module} --settings={setting}'.format(module=test_module, setting=setting))
ret = os.system('coverage run --include="$PWD/*" manage.py test {module} --settings={setting}'.format(module=test_module, setting=setting))
if not ret and is_coverage:
os.system("coverage html && open htmlcov/index.html")