mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
[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.
18 lines
382 B
Python
18 lines
382 B
Python
import sys
|
|
import unittest
|
|
|
|
# sys.path.insert(1, '../')
|
|
from lib.storage import Storage
|
|
|
|
storage = Storage()
|
|
|
|
class StorageTest(unittest.TestCase):
|
|
|
|
def test_Storage_databasee(self):
|
|
self.assertTrue(storage.database())
|
|
|
|
def test_Storage_create_tables(self):
|
|
self.assertIsNot(storage.create_tables(), Exception)
|
|
if __name__ == '__main__':
|
|
unittest.main()
|