unittest: use unittest.mock instead of mock
because the absence of unittest.mock on python2.7, we still fallback to mock
This commit is contained in:
parent
589e6bbb96
commit
ca05418fb5
390 changed files with 966 additions and 451 deletions
|
|
@ -1,13 +1,18 @@
|
|||
from __future__ import absolute_import
|
||||
import copy
|
||||
import hashlib
|
||||
import mock
|
||||
import unittest
|
||||
try:
|
||||
from unittest import mock
|
||||
from unittest.mock import call
|
||||
except ImportError:
|
||||
import mock
|
||||
from mock import call
|
||||
import random
|
||||
|
||||
import six
|
||||
from six.moves import range
|
||||
import unittest
|
||||
|
||||
from mock import call
|
||||
from koji.util import base64encode
|
||||
from koji_cli.commands import handle_import_sig
|
||||
from . import utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue