Merge "Port dashboard router tests on Python 3"
This commit is contained in:
commit
83cf09f579
@ -118,7 +118,8 @@ class RouterTests(test.BaseAdminViewTests, r_test.RouterTests):
|
||||
res = self.client.post(self.INDEX_URL, formData, follow=True)
|
||||
self.assertNoFormErrors(res)
|
||||
self.assertMessageCount(response=res, success=1)
|
||||
self.assertIn('Deleted Router: ' + router.name, res.content)
|
||||
self.assertIn('Deleted Router: ' + router.name,
|
||||
res.content.decode('utf-8'))
|
||||
|
||||
@test.create_stubs({api.neutron: ('router_list', 'network_list',
|
||||
'port_list', 'router_remove_interface',
|
||||
@ -161,7 +162,8 @@ class RouterTests(test.BaseAdminViewTests, r_test.RouterTests):
|
||||
res = self.client.post(self.INDEX_URL, formData, follow=True)
|
||||
self.assertNoFormErrors(res)
|
||||
self.assertMessageCount(response=res, success=1)
|
||||
self.assertIn('Deleted Router: ' + router.name, res.content)
|
||||
self.assertIn('Deleted Router: ' + router.name,
|
||||
res.content.decode('utf-8'))
|
||||
|
||||
|
||||
class RouterRouteTest(test.BaseAdminViewTests, r_test.RouterRouteTests):
|
||||
|
1
tox.ini
1
tox.ini
@ -29,6 +29,7 @@ commands =
|
||||
openstack_dashboard.contrib.sahara.content.data_processing.jobs.tests \
|
||||
openstack_dashboard.dashboards.admin.aggregates \
|
||||
openstack_dashboard.dashboards.admin.metering \
|
||||
openstack_dashboard.dashboards.admin.routers \
|
||||
openstack_dashboard.dashboards.admin.volumes.volumes.tests \
|
||||
openstack_dashboard.dashboards.identity.users \
|
||||
openstack_dashboard.dashboards.project.access_and_security.api_access.tests \
|
||||
|
Loading…
Reference in New Issue
Block a user