Commit 26b04da3 authored by Raphaël Hertzog's avatar Raphaël Hertzog

Don't disable logging in tests

Instead fix the problem that generated unexpected noise in some tests.
parent 74bb91fd
......@@ -53,6 +53,7 @@ def _get_logdata(msg, package, keyword, team):
'msgid': msg.get('Message-ID', 'no-msgid-present@localhost'),
'package': package or '<unknown>',
'keyword': keyword or '<unknown>',
'team': team or '<unknown>',
}
......
......@@ -13,7 +13,6 @@
This module contains the tests for the dispatch functionality
(:py:mod:`distro_tracker.mail.dispatch` module) of distro-tracker.
"""
import logging
from datetime import timedelta
from email.message import Message
from unittest import mock
......@@ -39,8 +38,6 @@ from distro_tracker.test import TestCase
DISTRO_TRACKER_CONTROL_EMAIL = settings.DISTRO_TRACKER_CONTROL_EMAIL
DISTRO_TRACKER_FQDN = settings.DISTRO_TRACKER_FQDN
logging.disable(logging.CRITICAL)
class DispatchTestHelperMixin(object):
"""
......
......@@ -16,7 +16,6 @@ Tests for Debian-specific modules/functionality of Distro Tracker.
import io
import json
import logging
import os
import yaml
import gzip
......@@ -107,8 +106,6 @@ from distro_tracker.vendor.debian.tracker_tasks import (
)
from distro_tracker.vendor.debian.views import CodeSearchView
logging.disable(logging.CRITICAL)
@override_settings(
DISTRO_TRACKER_VENDOR_RULES='distro_tracker.vendor.debian.rules')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment