a1f2903d2144ee2981acc89a9668d9289e1aa248,appengine/standard/sendgrid/main_test.py,,test_post,#Any#Any#,33
Before Change
app.post("/send", {
"recipient": "waprin@google.com"
})
send_mock.assert_called_once_with(mock.ANY)
After Change
@mock.patch("python_http_client.client.Client._make_request")
def test_post(make_request_mock, app):
response = mock.Mock()
response.getcode.return_value = 200
response.read.return_value = "OK"
response.info.return_value = {}
make_request_mock.return_value = response
app.post("/send", {
"recipient": "user@example.com"
})
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a1f2903d2144ee2981acc89a9668d9289e1aa248
Time: 2016-07-06
Author: jonwayne@google.com
File Name: appengine/standard/sendgrid/main_test.py
Class Name:
Method Name: test_post
Project Name: aws/sagemaker-python-sdk
Commit Name: 150e7e6f8911d41c184c996585216b5ede771ac2
Time: 2020-06-12
Author: 32551277+pdasamzn@users.noreply.github.com
File Name: tests/unit/sagemaker/automl/test_auto_ml.py
Class Name:
Method Name: test_deploy_optional_args
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a1f2903d2144ee2981acc89a9668d9289e1aa248
Time: 2016-07-06
Author: jonwayne@google.com
File Name: appengine/flexible/sendgrid/main_test.py
Class Name:
Method Name: test_post