From 3ccba5059be078fcf4d62fec50fe1d70add10e63 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Tue, 19 Feb 2013 22:50:57 +0100 Subject: [PATCH] Change the travis conf file to run the unitest.py script --- .travis.yml | 1 - glances/unitest.py | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 73773642..ffd4c9d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: python python: - - "2.5" - "2.6" - "2.7" - "3.2" diff --git a/glances/unitest.py b/glances/unitest.py index aa497151..4e6621da 100755 --- a/glances/unitest.py +++ b/glances/unitest.py @@ -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__':