Lines Matching refs:patch
88 with mock.patch("os.path.isfile") as chkfile:
96 @mock.patch("os.path.dirname", return_value="")
97 @mock.patch("subprocess.check_output")
108 @mock.patch.object(six.moves, "input")
118 @mock.patch.object(gcp_setup_runner, "UpdateConfigFile")
119 @mock.patch.object(utils, "CreateSshKeyPairIfNotExist")
128 with mock.patch('os.path.expanduser') as ssh_path:
143 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CreateStableHostImage")
144 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_EnableGcloudServices")
145 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupProject")
146 @mock.patch.object(gcp_setup_runner, "GoogleSDKBins")
149 with mock.patch("google_sdk.GoogleSDK"):
156 @mock.patch.object(gcp_setup_runner, "UpdateConfigFile")
168 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CheckBillingEnable")
169 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_NeedProjectSetup")
170 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupClientIDSecret")
171 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_UpdateProject")
189 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_CheckBillingEnable")
190 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_NeedProjectSetup")
191 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_SetupClientIDSecret")
192 @mock.patch.object(gcp_setup_runner.GcpTaskRunner, "_UpdateProject")
203 @mock.patch.object(utils, "GetUserAnswerYes")
229 @mock.patch("subprocess.check_output")
242 @mock.patch("subprocess.check_output")
252 @mock.patch("subprocess.check_output")