def test_init(self, main_section): context = Mock() # test initialize(context) # validation main_section.assert_called_once_with(context) context.cli.add_section.assert_called_once_with(main_section.return_value)
def test_init(self, main_section): context = Mock() # test initialize(context) # validation main_section.assert_called_once_with(context) context.cli.add_section.assert_called_once_with( main_section.return_value)
def initialize(context): admin_auth.initialize(context) consumer.initialize(context) content.initialize(context) auth.initialize(context) binding.initialize(context) event.initialize(context) orphan.initialize(context) repo.initialize(context) server_info.initialize(context) tasks.initialize(context)