Skip to content

Commit c707a08

Browse files
Merge pull request #1476 from allmightyspiff/issues1474
Fixing 'import mock' pylint issues
2 parents 4f533c5 + 1039f15 commit c707a08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+121
-119
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.5,3.6,3.7,3.8,3.9]
13+
python-version: [3.6,3.7,3.8,3.9]
1414

1515
steps:
1616
- uses: actions/checkout@v2

SoftLayer/testing/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import logging
1010
import os.path
1111
import unittest
12+
from unittest import mock as mock
1213

1314
from click import testing
14-
import mock
1515

1616
import SoftLayer
1717
from SoftLayer.CLI import core

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
'Operating System :: OS Independent',
5151
'Topic :: Software Development :: Libraries :: Python Modules',
5252
'Programming Language :: Python :: 3',
53-
'Programming Language :: Python :: 3.5',
5453
'Programming Language :: Python :: 3.6',
5554
'Programming Language :: Python :: 3.7',
5655
'Programming Language :: Python :: 3.8',

tests/CLI/core_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import logging
99

1010
import click
11-
import mock
11+
from unittest import mock as mock
1212

1313
from requests.models import Response
1414
import SoftLayer

tests/CLI/environment_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"""
77

88
import click
9-
import mock
10-
# from unittest.mock import MagicMock
9+
from unittest import mock as mock
1110

1211
from SoftLayer.CLI import environment
1312
from SoftLayer import testing

tests/CLI/helper_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import tempfile
1212

1313
import click
14-
import mock
14+
from unittest import mock as mock
1515

1616
from SoftLayer.CLI import core
1717
from SoftLayer.CLI import exceptions

tests/CLI/modules/autoscale_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
88
Tests for the autoscale cli command
99
"""
10-
import mock
10+
1111
import sys
12+
from unittest import mock as mock
1213

1314
from SoftLayer import fixtures
1415
from SoftLayer import testing

tests/CLI/modules/block_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
import json
13-
import mock
13+
from unittest import mock as mock
1414

1515

1616
class BlockTests(testing.TestCase):

tests/CLI/modules/config_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import sys
1010
import tempfile
1111

12-
import mock
12+
from unittest import mock as mock
1313

1414
import SoftLayer
1515
from SoftLayer import auth

tests/CLI/modules/dedicatedhost_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
:license: MIT, see LICENSE for more details.
66
"""
77
import json
8-
import mock
9-
import SoftLayer
8+
from unittest import mock as mock
109

10+
import SoftLayer
1111
from SoftLayer.CLI import exceptions
1212
from SoftLayer.fixtures import SoftLayer_Product_Package
1313
from SoftLayer.fixtures import SoftLayer_Virtual_DedicatedHost

0 commit comments

Comments
 (0)