Browse Source

Use unittest.mock instead of third party mock

Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Id1f5f15e7d6c7edc5003f8f1947b7fb8ff783bbe
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
changes/06/717406/2
Sean McGinnis 3 months ago
parent
commit
98f7e150ad
No known key found for this signature in database GPG Key ID: CE7EE4BFAF8D70C8
2 changed files with 1 additions and 2 deletions
  1. +0
    -1
      test-requirements.txt
  2. +1
    -1
      tripleo_repos/tests/test_main.py

+ 0
- 1
test-requirements.txt View File

@@ -15,5 +15,4 @@ testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
stestr>=2.0.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
mock>=2.0 # BSD


+ 1
- 1
tripleo_repos/tests/test_main.py View File

@@ -14,9 +14,9 @@

import subprocess
import sys
from unittest import mock

import ddt
import mock
import testtools

from tripleo_repos import main


Loading…
Cancel
Save