Started books per page algorithm, updated some tests

This commit is contained in:
Mike
2019-11-07 00:38:08 -05:00
parent 8a39fb5aa8
commit 8e61105cbb
9 changed files with 51 additions and 11 deletions

View File

@@ -1,11 +1,17 @@
import unittest
import sys
import unittest
from lib.pyShelf import BookDisplay, BookServer
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())
def test_booksPerPage(self):
x, y = 900, 450
self.assertGreater(BookDisplay().booksPerPage([x,y]), 0)