aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_postprocessor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-05-05 01:18:58 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-05-05 01:18:58 -0400
commitc679cd7a13bdbf6896e53d68fe2093910bc6625a (patch)
tree6047abcc55283d7e631b7a73039865417a303428 /test/test_postprocessor.py
parent4a18b5837c1dd82f5964afcfc3fecc53cd97e79c (diff)
New upstream version 1.29.6.upstream/1.29.6
Diffstat (limited to 'test/test_postprocessor.py')
-rw-r--r--test/test_postprocessor.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_postprocessor.py b/test/test_postprocessor.py
index 8b073b4..76e728c 100644
--- a/test/test_postprocessor.py
+++ b/test/test_postprocessor.py
@@ -173,6 +173,24 @@ class ClassifyTest(BasePostprocessorTest):
self.assertEqual(self.pathfmt.realpath, path + "/file.foo")
+class DirectoryTest(BasePostprocessorTest):
+
+ def test_default(self):
+ self._create()
+
+ path = os.path.join(self.dir.name, "test")
+ self.assertEqual(self.pathfmt.realdirectory, path + "/")
+ self.assertEqual(self.pathfmt.realpath, path + "/file.ext")
+
+ self.pathfmt.kwdict["category"] = "custom"
+ self._trigger()
+
+ path = os.path.join(self.dir.name, "custom")
+ self.assertEqual(self.pathfmt.realdirectory, path + "/")
+ self.pathfmt.build_path()
+ self.assertEqual(self.pathfmt.realpath, path + "/file.ext")
+
+
class ExecTest(BasePostprocessorTest):
def test_command_string(self):