From b2422020bc864b75f31c215b34692468cc03ce92 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 13 Nov 2013 10:19:51 +0100 Subject: [PATCH] genre for pictures --- apps/picture/tests/picture_import.py | 9 +++++++++ lib/librarian | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/picture/tests/picture_import.py b/apps/picture/tests/picture_import.py index 785aa6d28..68c875391 100644 --- a/apps/picture/tests/picture_import.py +++ b/apps/picture/tests/picture_import.py @@ -22,3 +22,12 @@ class PictureTest(WLTestCase): picture.delete() + + def test_import_2(self): + picture = Picture.from_xml_file(path.join(path.dirname(__file__), "files/pejzaz-i-miasto-krzyzanowski-chmury.xml"), + path.join(path.dirname(__file__), "files/pejzaz-i-miasto-krzyzanowski-chmury.jpg"), + overwrite=True) + cats = set([t.category for t in picture.tags]) + assert 'genre' in cats + assert 'kind' in cats + diff --git a/lib/librarian b/lib/librarian index 8f62bd3a1..6ab2b1634 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit 8f62bd3a1a38a25e860740dc4054fd034719b477 +Subproject commit 6ab2b1634713a84c9c73905893b25abaa643c08a -- 2.20.1