Skip to content

Commit 126c79b

Browse files
authored
Merge pull request #10 from Conan-Kudo/drop-mock-dep
Replace usage of mock with standard library version
2 parents 61892ac + 32769a9 commit 126c79b

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

.virtualenv.dev-requirements.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ pytest
1414
pytest-cov
1515
pytest-xdist
1616

17-
# Rolling backport of unittest.mock for all Pythons
18-
mock
19-
2017
# Version-bump your software with a single command!
2118
bumpversion
2219

@@ -35,4 +32,3 @@ twine
3532

3633
# static type checking
3734
mypy
38-
types-mock

kiwi_stackbuild_plugin/tasks/system_stackbuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
import os
6464
import sys
6565
import logging
66-
from mock import patch
66+
from unittest.mock import patch
6767
from docopt import docopt
6868
from typing import (
6969
Dict, List

package/python-kiwi_stackbuild_plugin-spec-template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ image root directory
8080
Summary: KIWI - Stack Build Plugin
8181
Group: Development/Languages/Python
8282
Requires: python%{python3_pkgversion}-docopt
83-
Requires: python%{python3_pkgversion}-mock
8483
Requires: python%{python3_pkgversion}-kiwi >= 9.21.21
8584
Requires: python%{python3_pkgversion}-setuptools
8685

test/unit/tasks/system_stackbuild_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from pytest import raises
3-
from mock import (
3+
from unittest.mock import (
44
Mock, patch, call
55
)
66

test/unit/tasks/system_stash_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from pytest import raises
3-
from mock import (
3+
from unittest.mock import (
44
Mock, patch
55
)
66
from tempfile import NamedTemporaryFile

0 commit comments

Comments
 (0)