File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020
2121import unittest
22-
23-
24- # Python 3 includes mocking, while 2 requires an extra module.
25- if sys .version_info [0 ] == 2 :
26- import mock
27- else :
28- from unittest import mock
22+ from unittest import mock
2923
3024
3125# In python 3, order matters when calling assertEqual to
Original file line number Diff line number Diff line change 1010# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
13- import mock
1413from botocore .compat import six
1514
1615from tests .unit .docs import BaseDocsTest
16+ from tests import mock
1717
1818
1919class TestResourceDocstrings (BaseDocsTest ):
Original file line number Diff line number Diff line change 1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
1313import os
14- import mock
1514
1615import boto3
16+ from tests import mock
1717from tests .unit .docs import BaseDocsTest
1818from boto3 .docs .service import ServiceDocumenter
1919
Original file line number Diff line number Diff line change 1010# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
13- from tests import unittest
14- import mock
13+ from tests import mock , unittest
1514
1615import boto3 .session
1716from boto3 .ec2 import createtags
Original file line number Diff line number Diff line change 1010# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
13- import unittest
14- import mock
13+ from tests import mock , unittest
1514
1615from boto3 .ec2 .deletetags import delete_tags
1716
Original file line number Diff line number Diff line change 1010# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
13- import mock
14-
1513from botocore .exceptions import ClientError
1614from botocore .compat import six
1715
1816from boto3 .s3 import inject
19- from tests import unittest
17+ from tests import mock , unittest
2018
2119
2220class TestInjectTransferMethods (unittest .TestCase ):
Original file line number Diff line number Diff line change 1010# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
13- from tests import unittest
13+ from tests import mock , unittest
1414
15- import mock
1615from s3transfer .manager import TransferManager
1716from s3transfer .futures import NonThreadedExecutor
1817
Original file line number Diff line number Diff line change 1111# ANY KIND, either express or implied. See the License for the specific
1212# language governing permissions and limitations under the License.
1313import types
14- from tests import unittest
15- import mock
14+ from tests import mock , unittest
1615
1716from boto3 import utils
1817
You can’t perform that action at this time.
0 commit comments