Browse Source

Merge "Use unittest.mock instead of mock"

master
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
337de39d71
4 changed files with 3 additions and 4 deletions
  1. +1
    -1
      sahara_tests/unit/scenario/test_base.py
  2. +1
    -1
      sahara_tests/unit/scenario/test_runner.py
  3. +1
    -1
      sahara_tests/unit/scenario/test_utils.py
  4. +0
    -1
      test-requirements.txt

+ 1
- 1
sahara_tests/unit/scenario/test_base.py View File

@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import mock
from unittest import mock
from saharaclient.api import cluster_templates
from saharaclient.api import clusters
from saharaclient.api import data_sources


+ 1
- 1
sahara_tests/unit/scenario/test_runner.py View File

@@ -18,7 +18,7 @@ import sys

from jsonschema import exceptions
import pkg_resources as pkg
import mock
from unittest import mock
import testtools

from sahara_tests import version


+ 1
- 1
sahara_tests/unit/scenario/test_utils.py View File

@@ -13,7 +13,7 @@

import os

import mock
from unittest import mock
import testtools

from sahara_tests.scenario import utils


+ 0
- 1
test-requirements.txt View File

@@ -8,5 +8,4 @@ bandit!=1.6.0
bashate>=0.2 # Apache-2.0
coverage>=3.6 # Apache-2.0
doc8 # Apache-2.0
mock>=1.2 # BSD
pylint==1.4.5 # GNU GPL v2

Loading…
Cancel
Save