Exemplo n.º 1
0
 def _test_flag(self, flag, kwarg, value):
     with patch('invoke.context.run') as run:
         dispatch(flag + ['-c', 'contextualized', 'run'])
         run.assert_called_with('x', **{kwarg: value})
Exemplo n.º 2
0
Arquivo: cli.py Projeto: B-Rich/invoke
 def _test_flag(self, flag, kwarg, value):
     with patch('invoke.context.run') as run:
         _dispatch('invoke {0} -c contextualized run'.format(flag))
         run.assert_called_with('x', **{kwarg: value})
Exemplo n.º 3
0
 def _test_flag(self, flag, kwarg, value):
     with patch('invoke.context.run') as run:
         dispatch(flag + ['-c', 'contextualized', 'run'])
         run.assert_called_with('x', **{kwarg: value})
Exemplo n.º 4
0
Arquivo: cli.py Projeto: vhbit/invoke
 def _test_flag(self, flag, kwarg, value):
     with patch('invoke.context.run') as run:
         _dispatch('invoke {0} -c contextualized run'.format(flag))
         run.assert_called_with('x', **{kwarg: value})