mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-26 10:42:29 +03:00
Correct unitest Restful for amp
This commit is contained in:
parent
eeb847fba6
commit
b347cb9ce8
@ -94,7 +94,7 @@ class TestGlances(unittest.TestCase):
|
|||||||
if p in ('uptime', 'now'):
|
if p in ('uptime', 'now'):
|
||||||
self.assertIsInstance(req.json(), text_type)
|
self.assertIsInstance(req.json(), text_type)
|
||||||
elif p in ('fs', 'monitor', 'percpu', 'sensors', 'alert', 'processlist',
|
elif p in ('fs', 'monitor', 'percpu', 'sensors', 'alert', 'processlist',
|
||||||
'diskio', 'hddtemp', 'batpercent', 'network', 'folders'):
|
'diskio', 'hddtemp', 'batpercent', 'network', 'folders', 'amps'):
|
||||||
self.assertIsInstance(req.json(), list)
|
self.assertIsInstance(req.json(), list)
|
||||||
elif p in ('psutilversion', 'help'):
|
elif p in ('psutilversion', 'help'):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user