Begining to build in directory recursion for book scanning

This commit is contained in:
Mike
2019-09-24 16:47:29 -04:00
commit 3c49cdf5e2
18 changed files with 151 additions and 0 deletions

22
tests/test_sysio.py Executable file
View File

@@ -0,0 +1,22 @@
import unittest
import os
import shutil
from pyShelf import InitFiles
from pyShelf import Epub
class SysIoTest(unittest.TestCase):
def test_sysio_InitFiles(self):
file_array = ["temp/test_file_1", "temp/test_file_2"]
InitFiles(file_array)
self.assertTrue(os.path.isfile(file_array[0]))
def tearDown(self):
try:
shutil.rmtree("temp")
except Exception as e:
pass
if __name__ == '__main__':
unittest.main()