运行时:./manage.py test appname单击“确定”后如何禁用所有统计信息/日志记录/输出?我已经注释掉了整个日志记录部分,没有运气。还注释掉了所有print_stat调用-没运气我的manage.py非常裸露,所以可能不是这样。我进行了许多测试,并且经常不得不向上滚动数千条端子线来查看结果。显然,我是Python / Django的新手,而且它是测试框架,因此,我将不胜感激。----------------------------------------------------------------------Ran 2 tests in 2.133sOK 1933736 function calls (1929454 primitive calls) in 2.133 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 1 0.000 0.000 2.133 2.133 <string>:1(<module>) 30 0.000 0.000 0.000 0.000 <string>:8(__new__) 4 0.000 0.000 0.000 0.000 Cookie.py:315(_quote) 26 0.000 0.000 0.000 0.000 Cookie.py:333(_unquote) 10 0.000 0.000 0.000 0.000 Cookie.py:432(__init__) 28 0.000 0.000 0.000 0.000 Cookie.py:441(__setitem__) . . . 2 0.000 0.000 0.000 0.000 {time.gmtime} 18 0.000 0.000 0.000 0.000 {time.localtime} 18 0.000 0.000 0.000 0.000 {time.strftime} 295 0.000 0.000 0.000 0.000 {time.time} 556 0.000 0.000 0.000 0.000 {zip}如果有帮助,我正在导入:from django.utils import unittestclass TestEmployeeAdd(unittest.TestCase): def setUp(self):
添加回答
举报
0/150
提交
取消