Files
pyShelf/tests/test_bookserver.py
Jon Banafato 98c0a4fc3d Use isort
[isort](https://isort.readthedocs.io/en/latest/) sorts your Python
imports so you don't have to. This makes sure that imports are always
where they should be and prevents issues like duplicated imports and
merge conflicts. Using pre-commit, this can be done automatically
without any manual steps.

Depends on #9.
2019-11-09 10:45:01 -05:00

24 lines
627 B
Python

import sys
import unittest
from lib.display import Frontend
from lib.pyShelf import BookDisplay, BookServer
sys.path.insert(0, '../lib')
sys.path.insert(1, '../')
class BookServerTest(unittest.TestCase):
def __init__(self):
self.dimensions = [900, 450]
def test_booksPerPage(self):
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)