Add Folders plugin to the unitaries tests

This commit is contained in:
nicolargo 2015-11-22 11:02:27 +01:00
parent 1daabae379
commit 5ab1059c35
2 changed files with 5 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class TestGlances(unittest.TestCase):
if p in ('uptime', 'now'):
self.assertIsInstance(req.json(), text_type)
elif p in ('fs', 'monitor', 'percpu', 'sensors', 'alert', 'processlist',
'diskio', 'hddtemp', 'batpercent', 'network'):
'diskio', 'hddtemp', 'batpercent', 'network', 'folders'):
self.assertIsInstance(req.json(), list)
elif p in ('psutilversion', 'help'):
pass

View File

@ -126,12 +126,15 @@ class TestGlances(unittest.TestCase):
def test_007_disk(self):
"""DISK."""
method = "getFs() and getDiskIO()"
method = "getFs(), getFolders() and getDiskIO()"
print('INFO: [TEST_007] Method: %s' % method)
req = json.loads(client.getFs())
self.assertIsInstance(req, list)
req = json.loads(client.getFolders())
self.assertIsInstance(req, list)
req = json.loads(client.getDiskIO())
self.assertIsInstance(req, list)