mirror of https://github.com/nicolargo/glances.git
Add Folders plugin to the unitaries tests
This commit is contained in:
parent
1daabae379
commit
5ab1059c35
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue