ottertune/server/website/tests/runner.py

23 lines
487 B
Python
Raw Permalink Normal View History

2019-08-23 08:47:19 -07:00
#
# OtterTune - runner.py
#
# Copyright (c) 2017-18, Carnegie Mellon University Database Group
#
'''
Created on Jan 29, 2018
@author: dvanaken
'''
import logging
from django.test.runner import DiscoverRunner
class BaseRunner(DiscoverRunner):
def run_tests(self, test_labels, extra_tests=None, **kwargs):
# Disable logging while running tests
logging.disable(logging.CRITICAL)
return super(BaseRunner, self).run_tests(test_labels, extra_tests, **kwargs)