Merge "Hided not found logger messages in unit tests"
This commit is contained in:
commit
e9fccfaf93
@ -13,6 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import fixtures
|
||||||
import mock
|
import mock
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
@ -26,6 +27,7 @@ class SaharaTestCase(testtools.TestCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(SaharaTestCase, self).setUp()
|
super(SaharaTestCase, self).setUp()
|
||||||
|
|
||||||
|
self.useFixture(fixtures.FakeLogger('sahara'))
|
||||||
self.setup_context()
|
self.setup_context()
|
||||||
|
|
||||||
def setup_context(self, username="test_user", tenant_id="tenant_1",
|
def setup_context(self, username="test_user", tenant_id="tenant_1",
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
import fixtures
|
||||||
import mock
|
import mock
|
||||||
import six
|
import six
|
||||||
import testtools
|
import testtools
|
||||||
@ -29,6 +30,7 @@ rnd = random.Random()
|
|||||||
class ContextTest(testtools.TestCase):
|
class ContextTest(testtools.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(ContextTest, self).setUp()
|
super(ContextTest, self).setUp()
|
||||||
|
self.useFixture(fixtures.FakeLogger('sahara'))
|
||||||
ctx = context.Context('test_user', 'tenant_1', 'test_auth_token', {},
|
ctx = context.Context('test_user', 'tenant_1', 'test_auth_token', {},
|
||||||
remote_semaphore='123')
|
remote_semaphore='123')
|
||||||
context.set_ctx(ctx)
|
context.set_ctx(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user