Added HTTP server and response

This commit is contained in:
Raelon Masters
2019-10-31 22:14:34 -04:00
parent eb59ac439a
commit ce93050b7f
8 changed files with 133 additions and 16 deletions

11
tests/test_bookserver.py Normal file
View File

@@ -0,0 +1,11 @@
import unittest
import sys
sys.path.insert(0, '../lib')
sys.path.insert(1, '../')
from pyShelf import BookServer
class BookServerTest(unittest.TestCase):
def test_bookserver(self):
server = BookServer()
self.assertTrue(server.run())

View File

@@ -1,9 +1,9 @@
import unittest
import sys
# sys.path.insert(1, '../')
from lib.library import Catalogue
Catalogue = Catalogue()
class LibraryTest(unittest.TestCase):
def test_libray_catalogue(self):