Merge "Add testcases for cloudkitty-dashboard"
This commit is contained in:
commit
de68086348
|
@ -20,10 +20,21 @@ test_cloudkittydashboard
|
||||||
Tests for `cloudkittydashboard` module.
|
Tests for `cloudkittydashboard` module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from cloudkittydashboard.dashboards.project.rating import \
|
||||||
|
panel as rating_panel
|
||||||
|
from cloudkittydashboard.dashboards.project.reporting import \
|
||||||
|
panel as reporting_panel
|
||||||
from cloudkittydashboard.tests import base
|
from cloudkittydashboard.tests import base
|
||||||
|
import horizon
|
||||||
|
|
||||||
|
|
||||||
class TestCloudkittydashboard(base.TestCase):
|
class TestCloudkittydashboard(base.TestCase):
|
||||||
|
|
||||||
def test_something(self):
|
def test_registered(self):
|
||||||
pass
|
project_dashboard = horizon.get_dashboard('project')
|
||||||
|
|
||||||
|
panel_1 = project_dashboard.get_panel('rating')
|
||||||
|
self.assertEqual(rating_panel.Project_rating, panel_1.__class__)
|
||||||
|
|
||||||
|
panel_2 = project_dashboard.get_panel('reporting')
|
||||||
|
self.assertEqual(reporting_panel.Project_reporting, panel_2.__class__)
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
|
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
|
||||||
|
|
||||||
|
# Require Horizon
|
||||||
|
-e git://github.com/openstack/horizon.git#egg=horizon
|
||||||
|
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
discover
|
discover
|
||||||
python-subunit>=0.0.18
|
python-subunit>=0.0.18
|
||||||
|
|
Loading…
Reference in New Issue