tests for inventory and cores
@@ -80,6 +80,9 @@ def test_inventory():
""" Test the inventory function """
instance = Action()
status = instance.inventory(choices=[])
+ assert type(status) == dict
+ status = instance.inventory(choices=['repo', 'core', 'tools', 'images', 'built', 'running', 'enabled', 'foo'])
+ assert type(status) == dict
def test_configure():
""" Test the configure function """
@@ -97,3 +100,17 @@ def test_logs():
def test_help():
""" Test the help function """
Action.help()
+
+def test_cores():
+ """ Test the cores function """
+ instance = Action()
+ cores = instance.cores('install')
+ assert cores[0] == True
+ cores = instance.cores('build')
+ assert cores[0] == True
+ cores = instance.cores('start')
+ assert cores[0] == True
+ cores = instance.cores('stop')
+ assert cores[0] == True
+ cores = instance.cores('clean')
+ assert cores[0] == True
