示例#1
0
 def test_upper(self, mocker):
     self.args.upper = True
     commands.execute_photos(self.args)
     mocker.assert_called_once_with(self.folder)
示例#2
0
 def test_missing(self, mocker):
     self.args.missing = True
     commands.execute_photos(self.args)
     mocker.assert_called_once_with(self.folder)
示例#3
0
 def test_nominal(self):
     commands.execute_photos(self.args)
示例#4
0
 def test_pause(self, mocker):
     self.args.pause = True
     commands.execute_photos(self.args)
     mocker.assert_called_once_with()
示例#5
0
 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)
示例#6
0
 def test_picasa(self, mocker):
     self.args.picasa = True
     commands.execute_photos(self.args)
     mocker.assert_called_once_with(self.folder)
示例#7
0
 def test_unexpected(self, mocker):
     self.args.unexpected_ext = True
     commands.execute_photos(self.args)
     mocker.assert_called_once_with(self.folder)