def setUp(self):
# Simple class that doesn't output to the standard output
class StringIOTextRunner(TextTestRunner):
def __init__(self, *args, **kwargs):
kwargs['stream'] = StringIO()
super().__init__(*args, **kwargs)
self.test_runner = DiscoverRunner()
self.test_runner.test_runner = StringIOTextRunner
test_query_count_runner.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录