Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I0425e8d85decf9106a533639bba1f5a4a7dc5b21 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
2c649d319e
commit
9a186fc483
|
@ -14,8 +14,8 @@
|
|||
|
||||
import shutil
|
||||
import tempfile
|
||||
from unittest import mock
|
||||
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
import pecan
|
||||
import pecan.testing
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from qinling.db import api as db_api
|
||||
from qinling import exceptions as exc
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
from datetime import datetime
|
||||
import json
|
||||
import tempfile
|
||||
from unittest import mock
|
||||
import uuid
|
||||
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
|
||||
from qinling.db import api as db_api
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
from datetime import datetime
|
||||
from datetime import timedelta
|
||||
import json
|
||||
from unittest import mock
|
||||
|
||||
import mock
|
||||
|
||||
from qinling import context
|
||||
from qinling.db import api as db_api
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from oslo_utils import uuidutils
|
||||
from qinling.tests.unit.api import base
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from qinling.db import api as db_api
|
||||
from qinling import status
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
import json
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from qinling import context
|
||||
from qinling.db import api as db_api
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
from qinling.db import api as db_api
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
|
||||
import datetime
|
||||
import testtools
|
||||
from unittest import mock
|
||||
import yaml
|
||||
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
|
||||
from qinling import config
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
from datetime import datetime
|
||||
from datetime import timedelta
|
||||
import time
|
||||
from unittest import mock
|
||||
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
|
||||
from qinling import context
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import mock
|
||||
import os
|
||||
from unittest import mock
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from swiftclient.exceptions import ClientException
|
||||
|
||||
|
|
Loading…
Reference in New Issue