Esempio n. 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)
Esempio n. 2
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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
 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)