summaryrefslogtreecommitdiffstats
path: root/unitest-restful.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2016-12-17 10:35:09 +0100
committernicolargo <nicolas@nicolargo.com>2016-12-17 10:35:09 +0100
commit1e36444f18f10cd558e39890903e5de821a12925 (patch)
tree648d315acf7271eeae75242c049ec5b2c20a24a7 /unitest-restful.py
parentc28a00ffb41c63f534bbb3babf99cea834e0254a (diff)
Correct an issue in PR issue #979 (for #issue #170) because the get_stats method overwrite the default get_method. Rename it to get_device_stats
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-xunitest-restful.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unitest-restful.py b/unitest-restful.py
index 8c11ed93..aea91e24 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -95,7 +95,7 @@ class TestGlances(unittest.TestCase):
self.assertIsInstance(req.json(), text_type)
elif p in ('fs', 'percpu', 'sensors', 'alert', 'processlist', 'diskio',
'hddtemp', 'batpercent', 'network', 'folders', 'amps', 'ports',
- 'irq', 'wifi'):
+ 'irq', 'wifi', 'gpu'):
self.assertIsInstance(req.json(), list)
elif p in ('psutilversion', 'help'):
pass