Replace mox with mox3

mox doesn't work on Python 3, whereas mox3 works on Python 2 and Python
3. Cinder, Nova and many other projects already replaced mox with mox3.
mox3 is now maintained by OpenStack.

Partial-Implements: blueprint porting-python3
Change-Id: I10e6a9754ebd58a2640d73ec8966527c3aa1fe9a
This commit is contained in:
Victor Stinner 2015-07-13 12:19:53 +02:00
parent a336dbd707
commit 674a45ffe0
69 changed files with 80 additions and 80 deletions

View File

@ -58,7 +58,7 @@ except ImportError as e:
os.environ['WITH_SELENIUM'] = ''
import mox
from mox3 import mox
from horizon import middleware

View File

@ -19,7 +19,7 @@ from django import http
from django import shortcuts
from django.template import defaultfilters
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon import tables
from horizon.tables import formset as table_formset

View File

@ -16,7 +16,7 @@ import mock
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.admin.aggregates import constants

View File

@ -14,7 +14,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -14,7 +14,7 @@ import json
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -12,7 +12,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -14,7 +14,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -19,7 +19,7 @@ from django.core.urlresolvers import reverse
from django import http
from django.test.utils import override_settings
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -14,8 +14,8 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -18,8 +18,8 @@ from django.core.urlresolvers import reverse
from django import http
from django.utils.datastructures import SortedDict
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -19,7 +19,7 @@ import json
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.admin.metadata_defs \

View File

@ -14,7 +14,7 @@ import json
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -17,7 +17,7 @@ from django import http
from horizon.workflows import views
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.networks import tests

View File

@ -23,7 +23,7 @@ from django import http
from django.utils import encoding
from django.utils import timezone
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon.templatetags import sizeformat

View File

@ -15,8 +15,8 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.routers import tests as r_test

View File

@ -12,7 +12,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard.api import cinder
from openstack_dashboard.test import helpers as test

View File

@ -14,7 +14,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.api import cinder

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -12,7 +12,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.api import cinder

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard.api import cinder
from openstack_dashboard.test import helpers as test

View File

@ -16,8 +16,8 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from horizon.workflows import views

View File

@ -15,8 +15,8 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -24,8 +24,8 @@ from django.test.utils import override_settings
from django.utils import timezone
from django.utils import unittest
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from horizon import exceptions
from horizon.workflows import views

View File

@ -15,8 +15,8 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -22,8 +22,8 @@ from django.core.urlresolvers import reverse
from django import http
from django.test.utils import override_settings
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -15,7 +15,7 @@
from django.core.urlresolvers import reverse
from django.http import HttpRequest # noqa
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -21,7 +21,7 @@ from django.core.urlresolvers import reverse
from django import http
from django.utils.http import urlencode
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.access_and_security \

View File

@ -19,7 +19,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.access_and_security.\

View File

@ -22,7 +22,7 @@ from django.conf import settings
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -20,7 +20,7 @@ from copy import deepcopy # noqa
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon.workflows import views
from openstack_dashboard import api

View File

@ -24,7 +24,7 @@ from django.core.files.uploadedfile import InMemoryUploadedFile # noqa
from django import http
from django.utils import http as utils_http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.containers import forms

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,8 +13,8 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.data_processing.utils \

View File

@ -14,7 +14,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -20,7 +20,7 @@ from django.core.urlresolvers import reverse
from django import http
from django.utils import unittest
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon import exceptions
from openstack_dashboard import api

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from django.core.urlresolvers import reverse
from django.core.urlresolvers import reverse_lazy

View File

@ -25,7 +25,7 @@ from django.forms.widgets import HiddenInput # noqa
from django import http
from django.test.utils import override_settings
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon import tables as horizon_tables
from openstack_dashboard import api

View File

@ -19,7 +19,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -22,7 +22,7 @@ from socket import timeout as socket_timeout # noqa
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon import exceptions

View File

@ -27,8 +27,8 @@ import django.test
from django.utils.datastructures import SortedDict
from django.utils import encoding
from django.utils.http import urlencode
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from horizon import exceptions
from horizon import forms

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from django.core.urlresolvers import reverse
from django.core.urlresolvers import reverse_lazy

View File

@ -18,7 +18,7 @@ from django.core.urlresolvers import reverse
from django import http
import django.test
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -18,7 +18,7 @@ from django.utils.html import escape
from horizon.workflows import views
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.networks.subnets import tables\

View File

@ -22,7 +22,7 @@ from django.core.urlresolvers import reverse
from django import http
from django.utils import timezone
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -16,8 +16,8 @@ import copy
from django.core.urlresolvers import reverse
from django import http
from mox import IgnoreArg # noqa
from mox import IsA # noqa
from mox3.mox import IgnoreArg # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.dashboards.project.routers.extensions.routerrules\

View File

@ -14,7 +14,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -21,7 +21,7 @@ from django import http
from django.test.utils import override_settings # noqa
from django.utils import html
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from django.utils.http import urlencode
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -18,7 +18,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.api import cinder

View File

@ -15,7 +15,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -22,7 +22,7 @@ from django.forms import widgets
from django import http
from django.test.utils import override_settings
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.api import cinder

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from django.core.urlresolvers import reverse
from django.core.urlresolvers import reverse_lazy

View File

@ -13,7 +13,7 @@
from django.core.urlresolvers import reverse
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -19,7 +19,7 @@ from django import http
from django.utils.six.moves.urllib.parse import urlsplit # noqa
from django.utils import unittest
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -14,7 +14,7 @@
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.test import helpers as test

View File

@ -19,7 +19,7 @@ import uuid
from django import http
from django.test.utils import override_settings
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from novaclient.v2 import floating_ip_pools

View File

@ -23,7 +23,7 @@ from django.conf import settings
from django import http
from django.test.utils import override_settings
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from novaclient import exceptions as nova_exceptions
from novaclient.v2 import servers
import six

View File

@ -18,7 +18,7 @@
from __future__ import absolute_import
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from horizon import exceptions

View File

@ -38,7 +38,7 @@ from heatclient import client as heat_client
import httplib2
from keystoneclient.v2_0 import client as keystone_client
import mock
import mox
from mox3 import mox
from neutronclient.v2_0 import client as neutron_client
from novaclient.v2 import client as nova_client
from openstack_auth import user

View File

@ -20,7 +20,7 @@
from __future__ import absolute_import
from django import http
from mox import IsA # noqa
from mox3.mox import IsA # noqa
from openstack_dashboard import api
from openstack_dashboard.api import cinder

View File

@ -13,7 +13,7 @@ coverage>=3.6
django-nose>=1.2
mock>=1.1;python_version!='2.6'
mock==1.0.1;python_version=='2.6'
mox>=0.5.3
mox3>=0.7.0
nodeenv>=0.9.4 # BSD License
nose
nose-exclude