Ensure to call patch_middleware_get_user() in api.test_base
ApiHelperTests.test_url_for in openstack_dashboard.test.unit.api.test_base depends on keystone user and token information. To make this work, we need to call utils.patch_middleware_get_user(). This commit changes ApiHelperTests to inherit APITestCase. Change-Id: I3848f756604262b07700a65e9be5bacd48da191f Closes-Bug: #1815285
This commit is contained in:
parent
8bc497a5e3
commit
4bf069bb92
|
@ -236,7 +236,7 @@ class ApiVersionTests(test.TestCase):
|
|||
self.fail("ConfigurationError raised inappropriately.")
|
||||
|
||||
|
||||
class ApiHelperTests(test.TestCase):
|
||||
class ApiHelperTests(test.APITestCase):
|
||||
"""Tests for functions that don't use one of the api objects."""
|
||||
|
||||
def test_url_for(self):
|
||||
|
|
Loading…
Reference in New Issue