mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
parent
7d6af936c5
commit
e528f3cb77
@ -95,7 +95,7 @@ class ClassifyTest(BasePostprocessorTest):
|
||||
|
||||
pp.prepare(self.pathfmt)
|
||||
path = os.path.join(self.dir.name, "test", "Pictures")
|
||||
self.assertEqual(pp._dir, path)
|
||||
self.assertEqual(self.pathfmt.path, path + "/file.jpg")
|
||||
self.assertEqual(self.pathfmt.realpath, path + "/file.jpg")
|
||||
|
||||
with patch("os.makedirs") as mkdirs:
|
||||
@ -107,7 +107,7 @@ class ClassifyTest(BasePostprocessorTest):
|
||||
rp = self.pathfmt.realpath
|
||||
|
||||
pp.prepare(self.pathfmt)
|
||||
self.assertEqual(pp._dir, None)
|
||||
self.assertEqual(self.pathfmt.path, rp)
|
||||
self.assertEqual(self.pathfmt.realpath, rp)
|
||||
|
||||
with patch("os.makedirs") as mkdirs:
|
||||
@ -127,7 +127,7 @@ class ClassifyTest(BasePostprocessorTest):
|
||||
|
||||
pp.prepare(self.pathfmt)
|
||||
path = os.path.join(self.dir.name, "test", "foo", "bar")
|
||||
self.assertEqual(pp._dir, path)
|
||||
self.assertEqual(self.pathfmt.path, path + "/file.foo")
|
||||
self.assertEqual(self.pathfmt.realpath, path + "/file.foo")
|
||||
|
||||
with patch("os.makedirs") as mkdirs:
|
||||
|
@ -29,6 +29,7 @@ BROKEN = {
|
||||
"8chan",
|
||||
"imgth",
|
||||
"mangapark",
|
||||
"simplyhentai",
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user