mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Massive code refactoring, and some test rewrites.
This commit is contained in:
16
app/tests/config_test.py
Executable file
16
app/tests/config_test.py
Executable file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
from ..lib.config import Config
|
||||
|
||||
|
||||
class TestConfig:
|
||||
config = Config(os.path.abspath(os.path.curdir))
|
||||
|
||||
def test_book_dir(self):
|
||||
assert os.path.isdir(self.config.book_path)
|
||||
|
||||
def test_title(self):
|
||||
assert 'pyShelf' in self.config.TITLE
|
||||
|
||||
def test_version(self):
|
||||
assert self.config.VERSION is not None
|
||||
Reference in New Issue
Block a user