Mox removal for DatabaseTests
Change-Id: I78987b7813e9330490b77507982227965b548521 Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
This commit is contained in:
parent
ddaf10204a
commit
8585705a68
File diff suppressed because it is too large
Load Diff
@ -19,6 +19,18 @@ from trove_dashboard import api
|
|||||||
from trove_dashboard.test.test_data import utils
|
from trove_dashboard.test.test_data import utils
|
||||||
|
|
||||||
|
|
||||||
|
# Shortcuts to avoid importing openstack_dashboard.test.helpers.
|
||||||
|
# TODO(zhaochao): as Akihiro Motoki pointed out the helper functions
|
||||||
|
# inside openstack_dashboard.test is not intended to be used by the
|
||||||
|
# horizon plugins, we should migrate to horizon.test.helpers instead.
|
||||||
|
# However some helper functions like 'create_mocks' below are still
|
||||||
|
# not migrated to horizon.test.helpers yet, we'll come back for this
|
||||||
|
# when everything is ready.
|
||||||
|
create_mocks = helpers.create_mocks
|
||||||
|
IsA = helpers.IsA
|
||||||
|
IsHttpRequest = helpers.IsHttpRequest
|
||||||
|
|
||||||
|
|
||||||
def create_stubs(stubs_to_create={}):
|
def create_stubs(stubs_to_create={}):
|
||||||
return helpers.create_stubs(stubs_to_create)
|
return helpers.create_stubs(stubs_to_create)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user