Skip to content

Commit

Permalink
migrate from external mock package to stdlib unittest.mock (#1673)
Browse files Browse the repository at this point in the history
It was moved to the stdlib in python 3.3, and the PyPI version is a
backport for python versions less than 3.3.
  • Loading branch information
eli-schwartz authored Dec 31, 2023
1 parent 0080eff commit dc44e7f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fixes:
- docs: add readthedocs yaml config (#1661)
- fix: broken integration tests (#1668)
- style: replace format() with f-strings (#1667)
- migrate from external mock package to stdlib unittest.mock (#1673)


v6.1.9 (2022-06-11)
Expand Down
2 changes: 1 addition & 1 deletion tests/cascade_dependencies_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import pathlib

import mock
from unittest import mock
import pytest

extra_plugin_dir = os.path.join(
Expand Down
2 changes: 1 addition & 1 deletion tests/commands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from tempfile import mkdtemp

import pytest
from mock import MagicMock
from unittest.mock import MagicMock

extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "dummy_plugin")

Expand Down
1 change: 0 additions & 1 deletion tests/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ skip_missing_interpreters = True

[testenv]
deps =
mock
pytest
slackclient>=1.0.5,<2.0

Expand Down

0 comments on commit dc44e7f

Please sign in to comment.