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: I7bf6d007ca8c01b53152301d862f3aacf11480b2 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
933bc20fc2
commit
7f5336cd0d
|
@ -13,12 +13,12 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from unittest import mock
|
||||
|
||||
from django.urls import reverse
|
||||
import mock
|
||||
|
||||
from masakaridashboard.test import helpers as test
|
||||
|
||||
|
||||
INDEX_URL = reverse('horizon:masakaridashboard:hosts:index')
|
||||
|
||||
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from unittest import mock
|
||||
|
||||
from django.conf import settings
|
||||
from django.test.utils import override_settings
|
||||
from django.urls import reverse
|
||||
from django.utils.http import urlunquote
|
||||
import mock
|
||||
|
||||
from masakaridashboard.notifications import tables as notification_tab
|
||||
from masakaridashboard.test import helpers as test
|
||||
|
||||
|
||||
INDEX_URL = reverse('horizon:masakaridashboard:notifications:index')
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from django.conf import settings
|
||||
from django.test.utils import override_settings
|
||||
|
|
|
@ -11,7 +11,6 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
|||
|
||||
# Testing Requirements
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
mock>=2.0.0 # BSD
|
||||
mox3>=0.20.0 # Apache-2.0
|
||||
nodeenv>=0.9.4 # BSD
|
||||
selenium>=2.50.1 # Apache-2.0
|
||||
|
|
Loading…
Reference in New Issue