Change the travis conf file to run the unitest.py script

This commit is contained in:
Nicolas Hennion 2013-02-19 22:50:57 +01:00
parent 1d7196d36a
commit 3ccba5059b
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,5 @@
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "3.2"

View File

@ -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__':