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

18
tests/test_library.py Executable file
View File

@@ -0,0 +1,18 @@
import unittest
from library import Catalogue
class Testing(unittest.TestCase):
def test_libray_catalogue(self):
self.assertIsNotNone(Catalogue())
def test_library_catalogue_scan_folder(self):
self.assertIsInstance(Catalogue().scan_folder(), object)
def test_library_catalogue_compare_shelf_current(self):
self.assertIsInstance(Catalogue().compare_shelf_current(), Catalogue)
if __name__ == '__main__':
unittest.main()