コード例 #1
0
    def test_should_handle_locations_with_spaces(self):
        path = "subdir with spaces/lunch_at_dave-1.jpg"
        info = reader.get_exifs(path)

        self.assertItemsEqual(info.keys(), [path])
        self.assertTrue("keywords" in info[path])
コード例 #2
0
    def test_should_return_tags_for_just_one_image(self):
        info = reader.get_exifs(["IMG_6868.jpg"])

        self.assertItemsEqual(info.keys(), ["IMG_6868.jpg"])
        self.assertTrue("person_in_image" in info["IMG_6868.jpg"])
コード例 #3
0
    def test_should_handle_string_value(self):
        info = reader.get_exifs("IMG_6868.jpg")

        self.assertItemsEqual(info.keys(), ["IMG_6868.jpg"])
        self.assertTrue("person_in_image" in info["IMG_6868.jpg"])
コード例 #4
0
ファイル: album.py プロジェクト: rnienaber/light-bucket
 def run_exiftool(self, image_relative_paths):
     return reader.get_exifs(image_relative_paths)
コード例 #5
0
    def test_should_return_tags_for_all_images(self):
        info = reader.get_exifs(["IMG_6868.jpg", "IMG_3277.jpg"])

        self.assertItemsEqual(info.keys(), ["IMG_6868.jpg", "IMG_3277.jpg"])
        self.assertTrue("person_in_image" in info["IMG_6868.jpg"])
        self.assertFalse("person_in_image" in info["IMG_3277.jpg"])
コード例 #6
0
ファイル: album.py プロジェクト: rnienaber/light-bucket
 def run_exiftool(self, image_relative_paths):
   return reader.get_exifs(image_relative_paths)
コード例 #7
0
    def test_should_handle_locations_with_spaces(self):
        path = 'subdir with spaces/lunch_at_dave-1.jpg'
        info = reader.get_exifs(path)

        self.assertItemsEqual(info.keys(), [path])
        self.assertTrue('keywords' in info[path])
コード例 #8
0
    def test_should_handle_string_value(self):
        info = reader.get_exifs('IMG_6868.jpg')

        self.assertItemsEqual(info.keys(), ['IMG_6868.jpg'])
        self.assertTrue('person_in_image' in info['IMG_6868.jpg'])
コード例 #9
0
    def test_should_return_tags_for_just_one_image(self):
        info = reader.get_exifs(['IMG_6868.jpg'])

        self.assertItemsEqual(info.keys(), ['IMG_6868.jpg'])
        self.assertTrue('person_in_image' in info['IMG_6868.jpg'])
コード例 #10
0
    def test_should_return_tags_for_all_images(self):
        info = reader.get_exifs(['IMG_6868.jpg', 'IMG_3277.jpg'])

        self.assertItemsEqual(info.keys(), ['IMG_6868.jpg', 'IMG_3277.jpg'])
        self.assertTrue('person_in_image' in info['IMG_6868.jpg'])
        self.assertFalse('person_in_image' in info['IMG_3277.jpg'])