From 7de9d3f0355232f1aa4dd6500000e4443b069185 Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Sat, 5 May 2018 11:10:56 +0800 Subject: [PATCH] release_test: Revert Signed-off-by: Ce Gao --- py/release_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/py/release_test.py b/py/release_test.py index a8a2fef2ad..70bfff6909 100644 --- a/py/release_test.py +++ b/py/release_test.py @@ -14,7 +14,8 @@ class ReleaseTest(unittest.TestCase): @mock.patch("py.release.util.clone_repo") @mock.patch("py.release.build_and_push") def test_build_postsubmit( # pylint: disable=no-self-use - self, mock_build_and_push, mock_clone): + self, mock_build_and_push, mock_clone, _mock_install, _mock_os, + _mock_makedirs): # Make sure REPO_OWNER and REPO_NAME aren't changed by the environment release.REPO_ORG = "kubeflow" release.REPO_NAME = "tf-operator" @@ -37,7 +38,10 @@ def test_build_postsubmit( # pylint: disable=no-self-use def test_build_pr(# pylint: disable=no-self-use self, mock_build_and_push, - mock_clone): + mock_clone, + _mock_install, + _mock_os, + _mock_makedirs): parser = release.build_parser() args = parser.parse_args( ["pr", "--pr=10", "--commit=22", "--src_dir=/top/src_dir"])