Declare heat-dashboard depends on mox

horizon is now migrating UTs from mox to mock in Rocky.
mox is now disabled by default in horizon/test/helpers.py,
so heat-dashboard needs to declare mox dependency explicitly.

Change-Id: Ie683c26def06d4e2b3aafd378ba207f0fa021044
This commit is contained in:
Akihiro Motoki 2018-02-22 09:40:35 +09:00
parent 678700d029
commit 9124b2d4a1

View File

@ -165,6 +165,10 @@ class TestCase(horizon_helpers.TestCase):
# boolean variable to store failures
missing_mocks = False
# heat-dashboard depends on mox and we need to declare it.
# horizon UT disables mox by default now.
use_mox = True
def fake_conn_request(self):
# print a stacktrace to illustrate where the unmocked API call
# is being made from