moved ./lbry/tests to ./tests

This commit is contained in:
Lex Berezhny 2018-07-06 11:15:14 -04:00 committed by Jack Robison
parent 12ff7015cd
commit 545451a829
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
63 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import unittest
from twisted.internet import defer from twisted.internet import defer
from twisted import trial from twisted import trial
from lbrynet import custom_logger from lbrynet.core import log_support
from lbrynet.tests.util import is_android from lbrynet.tests.util import is_android
@ -22,7 +22,7 @@ class TestLogger(trial.unittest.TestCase):
return d return d
def setUp(self): def setUp(self):
self.log = custom_logger.Logger('test') self.log = log_support.Logger('test')
self.stream = StringIO.StringIO() self.stream = StringIO.StringIO()
handler = logging.StreamHandler(self.stream) handler = logging.StreamHandler(self.stream)
handler.setFormatter(logging.Formatter("%(filename)s:%(lineno)d - %(message)s")) handler.setFormatter(logging.Formatter("%(filename)s:%(lineno)d - %(message)s"))
@ -36,7 +36,7 @@ class TestLogger(trial.unittest.TestCase):
return self.stream.getvalue().split('\n') return self.stream.getvalue().split('\n')
# the line number could change if this file gets refactored # the line number could change if this file gets refactored
expected_first_line = 'test_customLogger.py:20 - My message: terrible things happened' expected_first_line = 'test_log_support.py:20 - My message: terrible things happened'
# testing the entirety of the message is futile as the # testing the entirety of the message is futile as the
# traceback will depend on the system the test is being run on # traceback will depend on the system the test is being run on