Exemplo n.º 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])
Exemplo n.º 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"])
Exemplo n.º 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"])
Exemplo n.º 4
0
 def run_exiftool(self, image_relative_paths):
     return reader.get_exifs(image_relative_paths)
Exemplo n.º 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"])
Exemplo n.º 6
0
 def run_exiftool(self, image_relative_paths):
   return reader.get_exifs(image_relative_paths)
Exemplo n.º 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])
Exemplo n.º 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'])
Exemplo n.º 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'])
Exemplo n.º 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'])