diff --git a/test_requirements.txt b/test_requirements.txt index 4699e43e43..7076cd81a5 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 a26125b083..8fc66621b3 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)