Fixing stacklog tests
This commit is contained in:
parent
a6bf590c6e
commit
aee274cc6e
@ -44,7 +44,7 @@ class ExchangeLoggerTestCase(TestCase):
|
|||||||
mock_logger.setLevel(logging.DEBUG)
|
mock_logger.setLevel(logging.DEBUG)
|
||||||
self.mox.StubOutClassWithMocks(logging.handlers,
|
self.mox.StubOutClassWithMocks(logging.handlers,
|
||||||
'TimedRotatingFileHandler')
|
'TimedRotatingFileHandler')
|
||||||
filename = "{0}.log".format(name)
|
filename = "/tmp/{0}.log".format(name)
|
||||||
handler = logging.handlers.TimedRotatingFileHandler(
|
handler = logging.handlers.TimedRotatingFileHandler(
|
||||||
filename, backupCount=3, interval=1, when='midnight')
|
filename, backupCount=3, interval=1, when='midnight')
|
||||||
self.mox.StubOutClassWithMocks(logging, 'Formatter')
|
self.mox.StubOutClassWithMocks(logging, 'Formatter')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user