f83bb369fe8c6da157ca47804eb056b81faf0d10,bigquery/cloud-client/authorized_view_tutorial_test.py,,test_authorized_view_tutorial,#Any#Any#,39

Before Change


def test_authorized_view_tutorial(client, to_delete):
    source_dataset, shared_dataset = (
        authorized_view_tutorial.run_authorized_view_tutorial())
    to_delete.extend([source_dataset, shared_dataset])

    analyst_email = "example-analyst-group@google.com"
    analyst_entries = [entry for entry in shared_dataset.access_entries

After Change


    authorized_view_tutorial.run_authorized_view_tutorial()

    source_dataset = client.get_dataset(source_dataset_ref)
    shared_dataset = client.get_dataset(shared_dataset_ref)
    analyst_email = "example-analyst-group@google.com"
    analyst_entries = [entry for entry in shared_dataset.access_entries
                       if entry.entity_id == analyst_email]
    assert len(analyst_entries) == 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: f83bb369fe8c6da157ca47804eb056b81faf0d10
Time: 2018-07-17
Author: ajhamilton@google.com
File Name: bigquery/cloud-client/authorized_view_tutorial_test.py
Class Name:
Method Name: test_authorized_view_tutorial


Project Name: AIRLab-POLIMI/mushroom
Commit Name: ad44e9a2219e4508a68ba3e831d36b9ca6a324ee
Time: 2017-06-02
Author: carlo.deramo@gmail.com
File Name: examples/grid_world.py
Class Name:
Method Name: experiment


Project Name: openml/openml-python
Commit Name: f70c720c1624e3fadc52909885a4d3a096cd7214
Time: 2020-08-31
Author: 44670788+sahithyaravi1493@users.noreply.github.com
File Name: tests/test_datasets/test_dataset_functions.py
Class Name: TestOpenMLDataset
Method Name: test_data_edit


Project Name: automl/auto-sklearn
Commit Name: 47a3f125e816273ca137279096131ec78072c098
Time: 2020-06-15
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_do_dummy_prediction