Skip to content

Commit

Permalink
Use built-in unittest.mock instead of third-party mock
Browse files Browse the repository at this point in the history
Python 3 has a built-in version of mock available as unittest.mock.
Use it instead of installing the third-party package.
  • Loading branch information
mgorny authored and bbc2 committed Apr 17, 2022
1 parent 7d9cd4b commit 8080d1d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions requirements.txt
Expand Up @@ -2,12 +2,10 @@ bumpversion
click
flake8>=2.2.3
ipython
mock
pytest-cov
pytest>=3.9
sh>=1.09
tox
types-mock
wheel
twine
portray
3 changes: 1 addition & 2 deletions tests/test_ipython.py
@@ -1,6 +1,5 @@
import os

import mock
from unittest import mock

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Expand Up @@ -3,8 +3,8 @@
import os
import sys
import textwrap
from unittest import mock

import mock
import pytest
import sh

Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Expand Up @@ -14,7 +14,6 @@ python =

[testenv]
deps =
mock
pytest
coverage
sh
Expand All @@ -27,7 +26,6 @@ skip_install = true
deps =
flake8
mypy
types-mock
commands =
flake8 src tests
mypy --python-version=3.11 src tests
Expand Down

0 comments on commit 8080d1d

Please sign in to comment.