summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2019-02-09 21:12:50 +0900
committerAkihiro Motoki <amotoki@gmail.com>2019-03-06 23:58:34 +0900
commite5bc4dfb41b072b3bebe357a53f0c85972c202f2 (patch)
tree7d13a106ecb1af9d00ea4782d080ea2384e2c45c
parentb0eb41f606fdbb8a8407852493da12724e1a979b (diff)
downloadhorizon-e5bc4dfb41b072b3bebe357a53f0c85972c202f2.tar.gz
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 (cherry picked from commit 4bf069bb9292710ed86be245c1b091b0a7a7d678)
-rw-r--r--openstack_dashboard/test/unit/api/test_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/test/unit/api/test_base.py b/openstack_dashboard/test/unit/api/test_base.py
index 016ac72ab..687b649ca 100644
--- a/openstack_dashboard/test/unit/api/test_base.py
+++ b/openstack_dashboard/test/unit/api/test_base.py
@@ -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):