← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1137249] Re: logging outputs in test cases

 

** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1137249

Title:
  logging outputs in test cases

Status in OpenStack Quantum (virtual network service):
  Fix Released

Bug description:
  quantum/tests/unit/services/agent_loadbalancer/agent/test_init.py:
      def test_main(self):
          with contextlib.nested(
              mock.patch.object(agent.service, 'launch'),
              mock.patch.object(agent, 'eventlet'),
              mock.patch('sys.argv'),
              mock.patch.object(agent.manager, 'LbaasAgentManager')
          ) as (mock_launch, mock_eventlet, sys_argv, mgr_cls):
              agent.main()

              self.assertTrue(mock_eventlet.monkey_patch.called)
              mock_launch.assert_called_once_with(mock.ANY)

  we should mock quantum.agent.common.config.setup_logging when we have
  case for main

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1137249/+subscriptions