Added a check to search the output directories for duplicate video files
This commit is contained in:
@@ -66,6 +66,16 @@ class libfilemanagertest(unittest.TestCase):
|
||||
|
||||
self.assertFalse(result)
|
||||
|
||||
def test_checkduplicatesameextension(self):
|
||||
settings = Mock('libsettings.Settings')
|
||||
filemanager = FileManager(settings)
|
||||
|
||||
os.walk = dummywalk
|
||||
|
||||
result = filemanager.checkduplicates("/path/to/S03E14 - Test - SD TV.avi")
|
||||
|
||||
self.assertFalse(result)
|
||||
|
||||
|
||||
def dummywalk(arg):
|
||||
return [("/path/to/", [], ["S03E14 - Test - SD TV.avi"])]
|
||||
|
||||
Reference in New Issue
Block a user