Skip to content

Commit

Permalink
Exclude broken pytest-asyncio version; remove pytest-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Oct 31, 2023
1 parent 8833e3a commit 3adcfbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ tests =
flake8-simplify>=0.14.0
flake8>=3.0.0
mypy>=0.910
pytest-asyncio>=0.17
# https://github.com/pytest-dev/pytest-asyncio/issues/655
pytest-asyncio>=0.17,!=0.22.0
pytest-cov>=2.8.0
pytest-xdist>=2
pytest-env>=0.6.2
pytest-mock>=3.6.1
pytest>=6
testfixtures>=6.11.0
towncrier>=23
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/test_id_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@


@pytest.fixture
def mock_exists(mocker):
mock_exists = mocker.patch('pathlib.Path.exists')
mock_exists.return_value = True
def mock_exists(monkeypatch: pytest.MonkeyPatch):
monkeypatch.setattr('pathlib.Path.exists', lambda *a, **k: True)


@pytest.fixture(scope='module')
Expand Down

0 comments on commit 3adcfbc

Please sign in to comment.