Merge "Hided not found logger messages in unit tests"

This commit is contained in:
Jenkins 2014-06-15 22:01:08 +00:00 committed by Gerrit Code Review
commit e9fccfaf93
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import fixtures
import mock
import testtools
@ -26,6 +27,7 @@ class SaharaTestCase(testtools.TestCase):
def setUp(self):
super(SaharaTestCase, self).setUp()
self.useFixture(fixtures.FakeLogger('sahara'))
self.setup_context()
def setup_context(self, username="test_user", tenant_id="tenant_1",

View File

@ -15,6 +15,7 @@
import random
import fixtures
import mock
import six
import testtools
@ -29,6 +30,7 @@ rnd = random.Random()
class ContextTest(testtools.TestCase):
def setUp(self):
super(ContextTest, self).setUp()
self.useFixture(fixtures.FakeLogger('sahara'))
ctx = context.Context('test_user', 'tenant_1', 'test_auth_token', {},
remote_semaphore='123')
context.set_ctx(ctx)