From 56a5e89e320e4f605a24322bf0c09249a809ad55 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 24 May 2016 13:07:37 -0500 Subject: [PATCH] Raise mock requirement to 2.0 Mock now has assert_called and assert_called_once checks. We had previously needed to watch out for these and replace them with things like assertEqual(1, mocked.call_count) if a new patch introduced them. This was complicated by the fact that the gate has been using 2.0 for some time as it pulled the latest version, so it wouldn't catch if there was an invalid call introduced. If a user was using a previously installed version it would fail for them locally. Rather than having conditional checks or needing to watch for these incompatibilities in reviews, I propose we just make 2.0 the default. Change-Id: If8cb4e476ad56d3ce6b01215fdaa2f3aa8a354c4 --- global-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-requirements.txt b/global-requirements.txt index 4c9ff52e0c..b1566053c5 100644 --- a/global-requirements.txt +++ b/global-requirements.txt @@ -313,7 +313,7 @@ ldappool>=2.0.0 # MPL mimic>=2.0.0 # Apache-2.0 # Do not make mock conditional on Python version: we depend on newer code than # in [most] releases of the Python std library. -mock>=1.2 # BSD +mock>=2.0 # BSD mox>=0.5.3 # Apache-2.0 mox3>=0.7.0 # Apache-2.0 MySQL-python;python_version=='2.7' # GPL with FOSS exception