mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Add unit test for database listing
This commit is contained in:
parent
f7dc2b9c84
commit
c744aa1caf
@ -147,6 +147,11 @@ class InspectorFSDBTestCase(TestCase):
|
|||||||
@patch("os.listdir", MagicMock(return_value=['test_db']))
|
@patch("os.listdir", MagicMock(return_value=['test_db']))
|
||||||
def test_list_databases(self):
|
def test_list_databases(self):
|
||||||
'''
|
'''
|
||||||
|
Test list databases.
|
||||||
|
:return:
|
||||||
|
'''
|
||||||
|
csvdb = CsvDB('/foobar')
|
||||||
|
assert csvdb.list() == ['test_db']
|
||||||
Test storing object into the database.
|
Test storing object into the database.
|
||||||
|
|
||||||
def test_obj_serialization(self):
|
def test_obj_serialization(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user