nosetests captures logging for us
This commit is contained in:
parent
4efddadd3c
commit
d95bb80c10
@ -1,3 +0,0 @@
|
||||
import logging
|
||||
|
||||
logging.basicConfig(filename='test.log', level=logging.DEBUG)
|
||||
@ -1,6 +1,5 @@
|
||||
import random
|
||||
import time
|
||||
import logging
|
||||
|
||||
from mopidy.models import Playlist, Track
|
||||
|
||||
@ -26,9 +25,6 @@ class BaseCurrentPlaylistControllerTest(object):
|
||||
|
||||
assert len(self.tracks) >= 3, 'Need at least three tracks to run tests.'
|
||||
|
||||
self.logger = logging.getLogger('tests.backends')
|
||||
self.logger.info('Starting: %s', self)
|
||||
|
||||
def tearDown(self):
|
||||
self.backend.destroy()
|
||||
|
||||
@ -208,9 +204,6 @@ class BasePlaybackControllerTest(object):
|
||||
assert self.tracks[0].length >= 2000, \
|
||||
'First song needs to be at least 2000 miliseconds'
|
||||
|
||||
self.logger = logging.getLogger('tests.backends')
|
||||
self.logger.info('Starting: %s', self)
|
||||
|
||||
def tearDown(self):
|
||||
self.backend.destroy()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user