def test_upper(self, mocker): self.args.upper = True commands.execute_photos(self.args) mocker.assert_called_once_with(self.folder)
def test_missing(self, mocker): self.args.missing = True commands.execute_photos(self.args) mocker.assert_called_once_with(self.folder)
def test_nominal(self): commands.execute_photos(self.args)
def test_pause(self, mocker): self.args.pause = True commands.execute_photos(self.args) mocker.assert_called_once_with()
def test_resize(self, mocker): self.args.resize = True commands.execute_photos(self.args) mocker.assert_called_once_with(self.folder, max_width=1024, max_height=768)
def test_picasa(self, mocker): self.args.picasa = True commands.execute_photos(self.args) mocker.assert_called_once_with(self.folder)
def test_unexpected(self, mocker): self.args.unexpected_ext = True commands.execute_photos(self.args) mocker.assert_called_once_with(self.folder)