Added a check to search the output directories for duplicate video files
This commit is contained in:
parent
5ae07c01e7
commit
5ef02c1e8e
4 changed files with 53 additions and 18 deletions
|
|
@ -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"])]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue