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
|
||||
# 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",
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user