Skip to content

Commit 6a83767

Browse files
authored
Merge pull request #18 from a-detiste/master
remove usage of old external "mock" module
2 parents 886cb62 + de8309d commit 6a83767

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
python-version: '3.x'
4242
- name: Install dependencies
43-
run: python -m pip install mypy types-mock types-setuptools .
43+
run: python -m pip install mypy types-setuptools .
4444
- name: mypy
4545
run: mypy .
4646

@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
python-version: "${{ matrix.python-version }}"
7272
- name: Install dependencies
73-
run: python -m pip install mock tox "${{ matrix.pytest-version }}" pytest-cov .
73+
run: python -m pip install tox "${{ matrix.pytest-version }}" pytest-cov .
7474
- name: Test
7575
run: |
7676
coverage run --branch --source=pytest_unordered -m pytest tests/

tests/test_unordered.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from typing import Iterable
44
from typing import List
55
from typing import Mapping
6+
from unittest.mock import ANY
67

78
import pytest
89
from _pytest.pytester import Pytester
910
from pytest import raises
1011

11-
from mock import ANY
1212
from pytest_unordered import UnorderedList
1313
from pytest_unordered import _compare_eq_unordered
1414
from pytest_unordered import unordered

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ commands =
77
deps =
88
coverage
99
codecov
10-
mock
1110
pytest7: pytest==7.4.4
1211
pytest8: pytest==8.1.1
1312
pytestlatest: pytest
@@ -27,7 +26,6 @@ commands = mypy .
2726
deps =
2827
mypy
2928
pytest
30-
types-mock
3129
types-setuptools
3230

3331
[flake8]

0 commit comments

Comments
 (0)