submission exists api

This commit is contained in:
zema1
2017-11-23 19:11:12 +08:00
parent 2b4fb4f368
commit 45953b8f80
6 changed files with 17 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ print("running flake8...")
if os.system("flake8 --statistics ."):
exit()
ret = os.system("coverage run ./manage.py test {module} --settings={setting}".format(module=test_module, setting=setting))
ret = os.system("coverage run --source='.' ./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")