File tree 8 files changed +8
-20
lines changed
8 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 19
19
20
20
21
21
import 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
29
23
30
24
31
25
# In python 3, order matters when calling assertEqual to
Original file line number Diff line number Diff line change 10
10
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
- import mock
14
13
from botocore .compat import six
15
14
16
15
from tests .unit .docs import BaseDocsTest
16
+ from tests import mock
17
17
18
18
19
19
class TestResourceDocstrings (BaseDocsTest ):
Original file line number Diff line number Diff line change 11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
13
import os
14
- import mock
15
14
16
15
import boto3
16
+ from tests import mock
17
17
from tests .unit .docs import BaseDocsTest
18
18
from boto3 .docs .service import ServiceDocumenter
19
19
Original file line number Diff line number Diff line change 10
10
# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
- from tests import unittest
14
- import mock
13
+ from tests import mock , unittest
15
14
16
15
import boto3 .session
17
16
from boto3 .ec2 import createtags
Original file line number Diff line number Diff line change 10
10
# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
- import unittest
14
- import mock
13
+ from tests import mock , unittest
15
14
16
15
from boto3 .ec2 .deletetags import delete_tags
17
16
Original file line number Diff line number Diff line change 10
10
# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
- import mock
14
-
15
13
from botocore .exceptions import ClientError
16
14
from botocore .compat import six
17
15
18
16
from boto3 .s3 import inject
19
- from tests import unittest
17
+ from tests import mock , unittest
20
18
21
19
22
20
class TestInjectTransferMethods (unittest .TestCase ):
Original file line number Diff line number Diff line change 10
10
# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
- from tests import unittest
13
+ from tests import mock , unittest
14
14
15
- import mock
16
15
from s3transfer .manager import TransferManager
17
16
from s3transfer .futures import NonThreadedExecutor
18
17
Original file line number Diff line number Diff line change 11
11
# ANY KIND, either express or implied. See the License for the specific
12
12
# language governing permissions and limitations under the License.
13
13
import types
14
- from tests import unittest
15
- import mock
14
+ from tests import mock , unittest
16
15
17
16
from boto3 import utils
18
17
You can’t perform that action at this time.
0 commit comments