mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Begining to build in directory recursion for book scanning
This commit is contained in:
18
tests/test_library.py
Executable file
18
tests/test_library.py
Executable 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()
|
||||
Reference in New Issue
Block a user