mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Run black on all files
This commit is contained in:
@@ -10,7 +10,7 @@ class TestConfig:
|
||||
assert os.path.isdir(self.config.book_path)
|
||||
|
||||
def test_title(self):
|
||||
assert 'pyShelf' in self.config.TITLE
|
||||
assert "pyShelf" in self.config.TITLE
|
||||
|
||||
def test_version(self):
|
||||
assert self.config.VERSION is not None
|
||||
|
||||
@@ -7,22 +7,21 @@ from ..lib.library import Catalogue
|
||||
|
||||
class Test_Config(Config):
|
||||
def __init__(self):
|
||||
Config.__init__(self, 'config.json')
|
||||
Config.__init__(self, "config.json")
|
||||
_data = self.open_file()
|
||||
|
||||
def open_file(self, root='config.json'):
|
||||
with open('config.json') as read_file:
|
||||
def open_file(self, root="config.json"):
|
||||
with open("config.json") as read_file:
|
||||
data = json.load(read_file)
|
||||
return data
|
||||
|
||||
|
||||
class Test_Catalogue(Catalogue):
|
||||
|
||||
def __init__(self):
|
||||
Catalogue.__init__(self, root=os.path.abspath('.'))
|
||||
Catalogue.__init__(self, root=os.path.abspath("."))
|
||||
|
||||
def filter_books(self):
|
||||
self.book_shelf = 'app/'+self.book_shelf
|
||||
self.book_shelf = "app/" + self.book_shelf
|
||||
return super().filter_books()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user