749ec6c1e910b91c2e97bcfc01aab1a5720615eb,data-analytics/bigquery-cross-project-slot-monitoring/tests/main_test.py,CopyMetricsTest,testCopyMetrics_Valid,#CopyMetricsTest#Any#,131
Before Change
headers={"X-AppEngine-QueueName": "SomeQueue"},
status=200)
mock_copy_metrics.assert_called_once()
After Change
@mock.patch.object(main.metrics, "copy_metrics")
def testCopyMetrics_Valid(self, mock_copy_metrics):
mocked_utcnow_value = datetime(2018, 1, 1, 12, 30, 30, 30)
main.datetime = mock.MagicMock()
main.datetime.utcnow.return_value = mocked_utcnow_value
payload = {
"src_project": "srcProject",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: GoogleCloudPlatform/professional-services
Commit Name: 749ec6c1e910b91c2e97bcfc01aab1a5720615eb
Time: 2018-06-24
Author: habas@google.com
File Name: data-analytics/bigquery-cross-project-slot-monitoring/tests/main_test.py
Class Name: CopyMetricsTest
Method Name: testCopyMetrics_Valid
Project Name: pmorissette/bt
Commit Name: 1feed5e917d7e2b679f50200061d6253e060f843
Time: 2018-04-11
Author: jordan.platts@ahss.org
File Name: tests/test_algos.py
Class Name:
Method Name: test_run_yearly
Project Name: pmorissette/bt
Commit Name: 2a57a09c68fb3a7dbb8473c7000aba7059cc123a
Time: 2018-04-11
Author: jordan.platts@ahss.org
File Name: tests/test_algos.py
Class Name:
Method Name: test_run_yearly