mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Staging for transfer
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import unittest
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from library import Catalogue
|
||||
|
||||
sys.path.insert(1, '../')
|
||||
from lib.library import Catalogue
|
||||
Catalogue = Catalogue()
|
||||
|
||||
class LibraryTest(unittest.TestCase):
|
||||
|
||||
def test_libray_catalogue(self):
|
||||
self.assertIsNotNone(Catalogue())
|
||||
self.assertIsNotNone(Catalogue)
|
||||
|
||||
def test_library_catalogue_filter_books(self):
|
||||
self.assertIsNotNone(Catalogue().filter_books())
|
||||
self.assertIsNotNone(Catalogue.filter_books())
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import unittest
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from storage import Storage
|
||||
sys.path.insert(1, '../')
|
||||
from lib.storage import Storage
|
||||
|
||||
storage = Storage()
|
||||
|
||||
@@ -13,4 +13,4 @@ class StorageTest(unittest.TestCase):
|
||||
def test_Storage_create_tables(self):
|
||||
self.assertIsNot(storage.create_tables(), Exception)
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
unittest.main()
|
||||
|
||||
@@ -2,9 +2,9 @@ import unittest
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
sys.path.insert(1, 'lib/')
|
||||
from pyShelf import InitFiles
|
||||
from pyShelf import Epub
|
||||
sys.path.insert(1, '../')
|
||||
from lib.pyShelf import InitFiles
|
||||
from lib.pyShelf import Epub
|
||||
|
||||
|
||||
class SysIoTest(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user