Skip to content

Commit

Permalink
refactor(tests): use unittest.mock instead of mock
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviml committed Apr 25, 2022
1 parent 37e4f50 commit 37d8588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
rev: v2.32.0
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-mock]
args: [--py37-plus]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
Union,
overload,
)
from unittest.mock import MagicMock

import pytest
from mock import MagicMock
from pytest import ExceptionInfo
from pytest_mock.plugin import MockerFixture
from typing_extensions import Literal
Expand Down

0 comments on commit 37d8588

Please sign in to comment.