예제 #1
0
 def test_wizard(self):
     args = Mock()
     args.path = '/tmp/foo'
     cli.getch = Mock(side_effect=chain(repeat('b', 10), 'c',
                                        repeat('b', 10)))
     cli.get_devices = Mock(side_effect=self.devices)
     spreads.config['keep'] = False
     cli.wizard(args, self.devices)
예제 #2
0
파일: cli_test.py 프로젝트: markvdb/spreads
 def test_wizard(self):
     args = Mock()
     args.path = '/tmp/foo'
     cli.getch = Mock(
         side_effect=chain(repeat('b', 10), 'c', repeat('b', 10)))
     cli.get_devices = Mock(side_effect=self.devices)
     spreads.config['keep'] = False
     cli.wizard(args, self.devices)
예제 #3
0
def test_wizard(capture, postprocess, output, config):
    cli.wizard(config)
    capture.assert_called_with(config)
    postprocess.assert_called_with(config)
    output.assert_called_with(config)
예제 #4
0
def test_wizard(capture, postprocess, output, config):
    cli.wizard(config)
    capture.assert_called_with(config)
    postprocess.assert_called_with(config)
    output.assert_called_with(config)
예제 #5
0
파일: cli_test.py 프로젝트: Gunirus/spreads
 def test_wizard(self, capture, postprocess, output):
     self.workflow.config['path'] = '/tmp/foo'
     cli.wizard(self.workflow.config)
     capture.assert_called_with(self.workflow.config)
     postprocess.assert_called_with(self.workflow.config)
     output.assert_called_with(self.workflow.config)