Skip to content

Commit 698e2ee

Browse files
committed
Merge pull request #87 from helgi/test_logging
fix(tests): make tests show CRITICAL errors
2 parents 74b3c7a + 5d3d85d commit 698e2ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SilentDjangoTestSuiteRunner(DjangoTestSuiteRunner):
3737
def run_tests(self, test_labels, extra_tests=None, **kwargs):
3838
"""Run tests with all but critical log messages disabled."""
3939
# hide any log messages less than critical
40-
logging.disable(logging.CRITICAL)
40+
logging.disable(logging.ERROR)
4141
return super(SilentDjangoTestSuiteRunner, self).run_tests(
4242
test_labels, extra_tests, **kwargs)
4343

0 commit comments

Comments
 (0)