Have all unit tests import from our own subclass of trial's unittest TestCase; set up logging in ONE PLACE ONLY

This commit is contained in:
Paul "LeoNerd" Evans 2014-09-12 18:24:53 +01:00
parent 958b52596c
commit cd62ee3f29
21 changed files with 52 additions and 61 deletions

View file

@ -14,11 +14,10 @@
# limitations under the License.
from twisted.trial import unittest
from tests import unittest
from twisted.internet import defer
from mock import Mock
import logging
from synapse.server import HomeServer
from synapse.http.client import HttpClient
@ -26,9 +25,6 @@ from synapse.handlers.directory import DirectoryHandler
from synapse.storage.directory import RoomAliasMapping
logging.getLogger().addHandler(logging.NullHandler())
class DirectoryHandlers(object):
def __init__(self, hs):
self.directory_handler = DirectoryHandler(hs)