Merge "Add testcases for cloudkitty-dashboard"
This commit is contained in:
commit
de68086348
|
@ -20,10 +20,21 @@ test_cloudkittydashboard
|
|||
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
|
||||
import horizon
|
||||
|
||||
|
||||
class TestCloudkittydashboard(base.TestCase):
|
||||
|
||||
def test_something(self):
|
||||
pass
|
||||
def test_registered(self):
|
||||
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.
|
||||
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
|
||||
discover
|
||||
python-subunit>=0.0.18
|
||||
|
|
Loading…
Reference in New Issue