Lines Matching refs:options
204 options = rh.hooks.HookOptions('hook name', args, {})
205 self.assertEqual(options.args(), args)
206 self.assertEqual(options.args(default_args=['moo']), args)
210 options = rh.hooks.HookOptions('hook name', [], {})
211 self.assertEqual(options.args(), [])
212 self.assertEqual(options.args(default_args=args), args)
216 options = rh.hooks.HookOptions('hook name', [], {
220 self.assertEqual(options.tool_path('pylint'), 'pylint')
222 self.assertEqual(options.tool_path('cpplint'), 'my cpplint')
224 self.assertRaises(AssertionError, options.tool_path, 'extra_tool')
262 self.options = rh.hooks.HookOptions('hook name', [], {})
278 ret = func(self.project, 'commit', desc, diff, options=self.options)
295 ret = func(self.project, 'commit', 'desc', (), options=self.options)
301 ret = func(self.project, 'commit', 'desc', diff, options=self.options)
314 self.project, 'commit', 'desc', (), options=self.options)
321 self.project, 'commit', 'desc', diff, options=self.options)
327 self.project, 'commit', 'desc', (), options=self.options)
333 self.project, 'commit', 'desc', (), options=self.options)
339 self.project, 'commit', 'desc', (), options=self.options)
692 self.project, 'commit', 'desc', (), options=self.options)
699 self.project, 'commit', 'desc', diff, options=self.options)
706 self.project, 'commit', 'desc', (), options=self.options)
740 self.project, 'commit', 'desc', (), options=self.options)
747 self.project, 'commit', 'desc', diff, options=self.options)