442efa40a52831655aa025cd60a5c6bc064c6ca2,iam/api-client/access_test.py,,test_member,#,30

Before Change


@pytest.fixture(scope="module")
def test_member():
    // section to create service account to test policy updates.
    rand = str(random.randint(0, 1000))
    name = "python-test-" + rand
    email = name + "@" + GCLOUD_PROJECT + ".iam.gserviceaccount.com"
    member = "serviceAccount:" + email
    service_accounts.create_service_account(
        GCLOUD_PROJECT, name, "Py Test Account"

After Change


def test_member():
    // section to create service account to test policy updates.
    // we use the first portion of uuid4 because full version is too long.
    name = "python-test-" + str(uuid.uuid4()).split("-")[0]
    email = name + "@" + GCLOUD_PROJECT + ".iam.gserviceaccount.com"
    member = "serviceAccount:" + email
    service_accounts.create_service_account(
        GCLOUD_PROJECT, name, "Py Test Account"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 442efa40a52831655aa025cd60a5c6bc064c6ca2
Time: 2020-04-08
Author: tmatsuo@google.com
File Name: iam/api-client/access_test.py
Class Name:
Method Name: test_member


Project Name: Belval/TextRecognitionDataGenerator
Commit Name: e047bcec68ebf51feaf0dc8f9e9d81b4db87baf2
Time: 2018-10-23
Author: edouard@belval.org
File Name: TextRecognitionDataGenerator/computer_text_generator.py
Class Name: ComputerTextGenerator
Method Name: generate


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6e45bc9291e6d06383da38ed3b2265d0d2cc8f5c
Time: 2020-04-27
Author: tmatsuo@google.com
File Name: iam/api-client/service_accounts_test.py
Class Name:
Method Name: test_service_accounts