From 7b922d0ec38bde07312c0a435ee1fe902331d1ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Mar 2021 21:19:37 +0545 Subject: [PATCH] build(deps): bump pytest-mock from 1.11.2 to 3.5.1 (#5705) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump pytest-mock from 1.11.2 to 3.5.1 Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.11.2 to 3.5.1. - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.11.2...v3.5.1) Signed-off-by: dependabot[bot] * change spy.return_value to spy.spy_return This was introduced in pytest-mock 2.0.0 https://github.com/pytest-dev/pytest-mock/commit/78499644cb800f8fe65a5c17e81d168fa2a4c6b9 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Saugat Pachhai (सौगात) --- test_requirements.txt | 2 +- tests/unit/test_external_repo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_requirements.txt b/test_requirements.txt index 4699e43e4..7076cd81a 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -4,7 +4,7 @@ wheel==0.36.2 pytest==6.2.2 pytest-cov==2.11.1 pytest-xdist==2.2.1 -pytest-mock==1.11.2 +pytest-mock==3.5.1 pytest-lazy-fixture==0.6.3 pytest-timeout==1.4.2 pytest-docker==0.10.1 diff --git a/tests/unit/test_external_repo.py b/tests/unit/test_external_repo.py index a26125b08..8fc66621b 100644 --- a/tests/unit/test_external_repo.py +++ b/tests/unit/test_external_repo.py @@ -68,7 +68,7 @@ def test_subrepo_is_constructed_properly( list(repo.repo_fs.walk(repo.root_dir)) # drain assert spy.call_count == 1 - subrepo = spy.return_value + subrepo = spy.spy_return assert repo.url == str(tmp_dir) assert repo.config["cache"]["dir"] == str(cache_dir)