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)
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)
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)
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)