mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 00:22:03 +00:00
fix useless escape symbol
This commit is contained in:
parent
040fb6fbbd
commit
af641dd421
@ -71,7 +71,7 @@ class WebsiteConfigAPITest(APITestCase):
|
|||||||
"allow_register": True, "submission_list_show_all": False}
|
"allow_register": True, "submission_list_show_all": False}
|
||||||
resp = self.client.post(url, data=data)
|
resp = self.client.post(url, data=data)
|
||||||
self.assertSuccess(resp)
|
self.assertSuccess(resp)
|
||||||
self.assertEqual(SysOptions.website_footer, '<img src=\"#\" />')
|
self.assertEqual(SysOptions.website_footer, '<img src="#" />')
|
||||||
|
|
||||||
def test_get_website_config(self):
|
def test_get_website_config(self):
|
||||||
# do not need to login
|
# do not need to login
|
||||||
|
@ -15,7 +15,7 @@ jsonfield==3.1.0
|
|||||||
mccabe==0.6.1
|
mccabe==0.6.1
|
||||||
otpauth==1.0.1
|
otpauth==1.0.1
|
||||||
Pillow==8.4.0
|
Pillow==8.4.0
|
||||||
psycopg2-binary==2.9.2
|
psycopg2==2.9.2
|
||||||
pycodestyle==2.8.0
|
pycodestyle==2.8.0
|
||||||
pyflakes==2.4.0
|
pyflakes==2.4.0
|
||||||
python-dateutil==2.8.2
|
python-dateutil==2.8.2
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
"title": "2021-11-20",
|
"title": "2021-11-20",
|
||||||
"details": [
|
"details": [
|
||||||
"django2.x即将停止支持,更新django到3.x LTS,相应地更新了全部相关依赖",
|
"django2.x即将停止支持,更新django到3.x LTS,相应地更新了全部相关依赖",
|
||||||
"合并底包版本到python3.8-alpine3.14,为移除python2做准备"
|
"合并底包版本到python3.8-alpine3.14,为移除python2做准备",
|
||||||
|
"按上游包的生产环境规范,修改依赖psycopg2_binary为psycopg2",
|
||||||
|
"TODO:本地开发环境搭建文档应做相应修改和提交。"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,7 @@ print("running flake8...")
|
|||||||
if os.system("flake8 --statistics ."):
|
if os.system("flake8 --statistics ."):
|
||||||
exit()
|
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:
|
if not ret and is_coverage:
|
||||||
os.system("coverage html && open htmlcov/index.html")
|
os.system("coverage html && open htmlcov/index.html")
|
||||||
|
Loading…
Reference in New Issue
Block a user