Learn more about these different git repos.
Other Git URLs
5e5b821
@@ -3,7 +3,7 @@
import os
import sys
from pprint import pprint
- from mock import patch
+ from unittest.mock import patch
from logging.config import dictConfig
import fedmsg.config
@@ -1,7 +1,6 @@
-r requirements.txt
copr
- mock
pytest
pytest-cov
vcrpy
@@ -20,7 +20,7 @@
#
# Written by Jan Kaluza <jkaluza@redhat.com>
- from mock import patch, MagicMock
+ from unittest.mock import patch, MagicMock
import freshmaker
from freshmaker.errata import ErrataAdvisory
@@ -22,7 +22,7 @@
import unittest
from freshmaker import events, models, db
from freshmaker.handlers.internal import CancelEventOnFreshmakerManageRequest
@@ -21,7 +21,7 @@
# Written by Chenxiong Qi <cqi@redhat.com>
- from mock import patch, MagicMock, PropertyMock
+ from unittest.mock import patch, MagicMock, PropertyMock
from freshmaker.handlers.internal import GenerateAdvisorySignedEventOnRPMSign
- from mock import patch, Mock
+ from unittest.mock import patch, Mock
from freshmaker import conf, db
- from mock import patch, PropertyMock
+ from unittest.mock import patch, PropertyMock
from freshmaker import db
from freshmaker.models import (
@@ -20,11 +20,12 @@
# SOFTWARE.
import json
- import mock
+ from unittest import mock
+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) # noqa
from tests import get_fedmsg, helpers
- from mock import patch, PropertyMock, Mock, call
+ from unittest.mock import patch, PropertyMock, Mock, call
@@ -26,7 +26,7 @@
import koji
from functools import wraps
import freshmaker.consumer
@@ -24,7 +24,7 @@
import flask
from werkzeug.exceptions import Unauthorized
import freshmaker.auth
@@ -18,8 +18,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
from requests_kerberos.exceptions import MutualAuthenticationError
from requests.exceptions import HTTPError
- from mock import MagicMock
+ from unittest.mock import MagicMock
from freshmaker.image_verifier import ImageVerifier
from tests import helpers
@@ -25,7 +25,7 @@
import io
import http.client
- from mock import call, patch, Mock
+ from unittest.mock import call, patch, Mock
@@ -23,7 +23,7 @@
from freshmaker import conf
from freshmaker import messaging
import datetime
from freshmaker import db, events
from freshmaker.models import ArtifactBuild, ArtifactType
@@ -20,12 +20,13 @@
import pytest
import requests
import importlib
from freshmaker import app, db, events, models, login_manager
# Jan kaluza <jkaluza@redhat.com>
from odcs.client.odcs import AuthMech
import queue
from freshmaker.pulp import Pulp
from freshmaker.sfm2 import SFM2API
import contextlib
from freshmaker.types import ArtifactType, ArtifactBuildState, EventState
unittest.mock is included in Python 3, no need to install mock separately.
Signed-off-by: Chenxiong Qi cqi@redhat.com
+1
Commit 63f9e62 fixes this pull-request
Pull-Request has been merged by gnaponie
unittest.mock is included in Python 3, no need to install mock
separately.
Signed-off-by: Chenxiong Qi cqi@redhat.com