Skip to content

Commit

Permalink
Merge pull request #5798 from cylc/8.2.x-sync
Browse files Browse the repository at this point in the history
🤖 Merge 8.2.x-sync into master
  • Loading branch information
MetRonnie authored Oct 31, 2023
2 parents abfe30d + dcfaa0a commit eb4ff48
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 @@ -116,11 +116,11 @@ tests =
flake8-type-checking; python_version > "3.7"
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 eb4ff48

Please sign in to comment.