mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
first stage of dynamic UI
This commit is contained in:
@@ -2,16 +2,21 @@ import sys
|
||||
import unittest
|
||||
|
||||
from lib.pyShelf import BookDisplay, BookServer
|
||||
|
||||
from lib.display import Frontend
|
||||
sys.path.insert(0, '../lib')
|
||||
sys.path.insert(1, '../')
|
||||
|
||||
class BookServerTest(unittest.TestCase):
|
||||
|
||||
def test_bookserver(self):
|
||||
server = BookServer()
|
||||
self.assertTrue(server.run())
|
||||
def __init__(self):
|
||||
self.dimensions = [900, 450]
|
||||
|
||||
def test_booksPerPage(self):
|
||||
x, y = 900, 450
|
||||
x, y = self.dimensions[0], self.dimensions[1]
|
||||
self.assertGreater(BookDisplay().booksPerPage([x,y]), 0)
|
||||
|
||||
def test_Frontend(self):
|
||||
x, y = self.dimensions[0], self.dimensions[1]
|
||||
ui = Frontend([x, y]).compile("TestCase", "Test Shelf")
|
||||
print(ui)
|
||||
self.assertNotEqual(ui, False)
|
||||
|
||||
Reference in New Issue
Block a user