From 9124b2d4a18a7e49a2fd3fb9b7b01ce2553148e6 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 22 Feb 2018 09:40:35 +0900 Subject: [PATCH] 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 --- heat_dashboard/test/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/heat_dashboard/test/helpers.py b/heat_dashboard/test/helpers.py index c4ec1cad..5091a5f0 100644 --- a/heat_dashboard/test/helpers.py +++ b/heat_dashboard/test/helpers.py @@ -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