6fac2b4658a751ceed8d52bdfae1fa08af495f8c,tests/providers/gcp/gcp_tpu_test.py,GcpTpuTestCase,setUp,#GcpTpuTestCase#,52

Before Change


  def setUp(self):
    flag_values = {"run_uri": "123", "project": None, "tpu_cores_per_donut": 8}

    p = mock.patch(gcp_tpu.__name__ + ".FLAGS")
    flags_mock = p.start()
    flags_mock.configure_mock(**flag_values)
    self.addCleanup(p.stop)
    mock_tpu_spec_attrs = self.CreateTpuSpecDict()
    self.mock_tpu_spec = mock.Mock(
        spec=benchmark_config_spec._TpuGroupSpec)
    self.mock_tpu_spec.configure_mock(**mock_tpu_spec_attrs)

After Change


    return tpu_class

  def setUp(self):
    self.flags = mock_flags.PatchTestCaseFlags(self)
    self.flags.run_uri = "123"
    self.flags.project = ""
    self.flags.tpu_cores_per_donut = 8
    self.flags.gcloud_path = "gcloud"

    mock_tpu_spec_attrs = self.CreateTpuSpecDict()
    self.mock_tpu_spec = mock.Mock(
        spec=benchmark_config_spec._TpuGroupSpec)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6fac2b4658a751ceed8d52bdfae1fa08af495f8c
Time: 2018-10-11
Author: ferneyhough@google.com
File Name: tests/providers/gcp/gcp_tpu_test.py
Class Name: GcpTpuTestCase
Method Name: setUp


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6fac2b4658a751ceed8d52bdfae1fa08af495f8c
Time: 2018-10-11
Author: ferneyhough@google.com
File Name: tests/providers/gcp/gcp_managed_relational_db_test.py
Class Name: GcpMysqlManagedRelationalDbTestCase
Method Name: setUp


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6fac2b4658a751ceed8d52bdfae1fa08af495f8c
Time: 2018-10-11
Author: ferneyhough@google.com
File Name: tests/providers/gcp/gcp_tpu_test.py
Class Name: GcpTpuTestCase
Method Name: setUp


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9ebd68f4204ea32539228316a09f5a8de600b8e4
Time: 2016-01-28
Author: skschneider@google.com
File Name: tests/aws_test.py
Class Name: AwsVirtualMachineExistsTestCase
Method Name: setUp