diff options
author | Nicolas Hennion <nicolas@nicolargo.com> | 2013-02-19 22:50:57 +0100 |
---|---|---|
committer | Nicolas Hennion <nicolas@nicolargo.com> | 2013-02-19 22:50:57 +0100 |
commit | 3ccba5059be078fcf4d62fec50fe1d70add10e63 (patch) | |
tree | 9939ad9f64d78e2777a6c1ab462a20ad2949b7ce | |
parent | 1d7196d36a27d13aa2178d6a41db338225d840ed (diff) |
Change the travis conf file to run the unitest.py script
-rw-r--r-- | .travis.yml | 1 | ||||
-rwxr-xr-x | 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__': |