mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Began extracting data from epub files
This commit is contained in:
Binary file not shown.
BIN
tests/__pycache__/test_sysio.cpython-37.pyc
Executable file → Normal file
BIN
tests/__pycache__/test_sysio.cpython-37.pyc
Executable file → Normal file
Binary file not shown.
@@ -1,14 +1,16 @@
|
||||
import unittest
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from library import Catalogue
|
||||
|
||||
|
||||
class Testing(unittest.TestCase):
|
||||
class LibraryTest(unittest.TestCase):
|
||||
|
||||
def test_libray_catalogue(self):
|
||||
self.assertIsNotNone(Catalogue())
|
||||
|
||||
def test_library_catalogue_filter_books(self):
|
||||
self.assertIsNotNone(Catalogue().filter_books(1))
|
||||
self.assertIsNotNone(Catalogue().filter_books())
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
16
tests/test_storage.py
Normal file
16
tests/test_storage.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import unittest
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from storage import Storage
|
||||
|
||||
storage = Storage()
|
||||
|
||||
class StorageTest(unittest.TestCase):
|
||||
|
||||
def test_Storage_databasee(self):
|
||||
self.assertTrue(storage.database())
|
||||
|
||||
def test_Storage_create_tables(self):
|
||||
self.assertIsNot(storage.create_tables(), Exception)
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,6 +1,8 @@
|
||||
import unittest
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from pyShelf import InitFiles
|
||||
from pyShelf import Epub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user