aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rossi <alexandre.rossi@gmail.com>2019-07-04 15:16:19 +0200
committerAlexandre Rossi <alexandre.rossi@gmail.com>2019-07-04 15:16:19 +0200
commit9b99dd115f90dbacdeaf43f8d965e1ed3dde3b98 (patch)
treef68eb5275e0c87d651462bea26cd2350e7ed8df5
parentc7d1d06b09e52f6d29eca4617d355623d62b5bf5 (diff)
downloadlazygal-9b99dd115f90dbacdeaf43f8d965e1ed3dde3b98.zip
lazygal-9b99dd115f90dbacdeaf43f8d965e1ed3dde3b98.tar.bz2
fix test_gen_metadata when source dir contrains _ (thanks Dominik Mierzejewski)
Closes https://bitbucket.org/niol/lazygal/issues/29/test_gen_metadata-fails-if-generated
-rw-r--r--lazygaltest/test_metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lazygaltest/test_metadata.py b/lazygaltest/test_metadata.py
index ef947fe..8d15898 100644
--- a/lazygaltest/test_metadata.py
+++ b/lazygaltest/test_metadata.py
@@ -127,7 +127,7 @@ Album image identifier "realtitle.jpg"
Album name "%s"
Album description ""
Album image identifier "first\xe3.jpg"
-''' % os.path.basename(self.source_dir))
+''' % os.path.basename(self.source_dir).replace('_', ' '))
def test_comment_none(self):
im_md = metadata.ImageInfoTags(self.get_sample_path('sample.jpg'))