Drop mox3 from test-requirements.txt

create_stubs in test.helpers is also dropped in this
commit because this creates a stub using mox

This is part of mox-removal community goal in Rocky.

Story: 2001546
Task: 8719

Change-Id: Ic97d45f3b265cf61ad483c33b4d29b975dd93a5f
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short 2018-03-23 09:32:56 -04:00
parent cfd6067ced
commit c0ab99a070
7 changed files with 4 additions and 9 deletions

View File

@ -33,7 +33,6 @@ EDIT_URL = urlresolvers.reverse(
class AlarmDefinitionsTest(helpers.TestCase):
def test_alarmdefs_get(self):
with patch('monitoring.api.monitor', **{
'spec_set': ['alarmdef_list'],

View File

@ -26,6 +26,7 @@ ALARMS_URL = urlresolvers.reverse(
class AlarmsTest(helpers.TestCase):
def test_alarms_get_by_dimension(self):
with patch('monitoring.api.monitor', **{
'spec_set': ['alarm_list_by_dimension'],

View File

@ -26,6 +26,7 @@ EDIT_URL = urlresolvers.reverse(
class AlarmsTest(helpers.TestCase):
def test_index(self):
with patch('monitoring.api.monitor', **{
'spec_set': ['notification_list'],

View File

@ -26,6 +26,7 @@ INDEX_URL = urlresolvers.reverse(
class OverviewTest(helpers.TestCase):
def test_index_get(self):
res = self.client.get(INDEX_URL)
self.assertTemplateUsed(

View File

@ -59,7 +59,6 @@ def _expected_session_args(verify):
class ClientTests(helpers.TestCase):
@override_settings(OPENSTACK_SSL_NO_VERIFY=False)
@override_settings(OPENSTACK_SSL_CACERT='/etc/ssl/certs/some.crt')
def test_ssl_verify_with_cert(self):

View File

@ -31,12 +31,6 @@ warnings.filterwarnings('ignore', 'With-statements now directly support '
r'^tuskar_ui[.].*[._]tests$')
def create_stubs(stubs_to_create=None):
if stubs_to_create is None:
stubs_to_create = {}
return helpers.create_stubs(stubs_to_create)
class MonitoringTestsMixin(object):
def _setup_test_data(self):
super(MonitoringTestsMixin, self)._setup_test_data()
@ -49,6 +43,7 @@ class MonitoringTestsMixin(object):
@unittest.skipIf(os.environ.get('SKIP_UNITTESTS', False),
"The SKIP_UNITTESTS env variable is set.")
class TestCase(MonitoringTestsMixin, helpers.TestCase):
use_mox = False
pass

View File

@ -8,7 +8,6 @@ coverage!=4.4,>=4.0 # Apache-2.0
django-nose>=1.4.4 # BSD
mock>=2.0.0 # BSD
funcsigs>=1.0.0;python_version=='2.7' or python_version=='2.6' # Apache-2.0
mox3>=0.20.0 # Apache-2.0
nodeenv>=0.9.4 # BSD
nose>=1.3.7 # LGPL
nose-exclude>=0.3.0 # LGPL