mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
Change the travis conf file to run the unitest.py script
This commit is contained in:
parent
1d7196d36a
commit
3ccba5059b
@ -1,6 +1,5 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.5"
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "3.2"
|
||||
|
@ -82,21 +82,21 @@ class TestGlancesStat(unittest.TestCase):
|
||||
self.stats.update()
|
||||
net = self.stats.getNetwork()
|
||||
#~ print("Network stat %s:" % net)
|
||||
self.assertTrue(type(net) == list)
|
||||
self.assertTrue(type(net) == list)
|
||||
self.assertTrue(len(net) > 0)
|
||||
|
||||
def test_Glances_getDiskIO(self):
|
||||
self.stats.update()
|
||||
diskio = self.stats.getDiskIO()
|
||||
#~ print("DiskIO stat %s:" % diskio)
|
||||
self.assertTrue(type(diskio) == list)
|
||||
self.assertTrue(type(diskio) == list)
|
||||
self.assertTrue(len(diskio) > 0)
|
||||
|
||||
def test_Glances_getFs(self):
|
||||
self.stats.update()
|
||||
fs = self.stats.getFs()
|
||||
#~ print("File system stat %s:" % fs)
|
||||
self.assertTrue(type(fs) == list)
|
||||
self.assertTrue(type(fs) == list)
|
||||
self.assertTrue(len(fs) > 0)
|
||||
|
||||
def test_Glances_getProcess(self):
|
||||
@ -114,7 +114,7 @@ class TestGlancesStat(unittest.TestCase):
|
||||
self.stats.update()
|
||||
sensors = self.stats.getSensors()
|
||||
#~ print("Optionnal sensors stat %s:" % sensors)
|
||||
self.assertTrue(type(sensors) == list)
|
||||
self.assertTrue(type(sensors) == list)
|
||||
#~ self.assertTrue(len(sensors) > 0)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user