예제 #1
0
def test_patch_dataset(capsys, test_dataset):
    datasets.patch_dataset(project_id, cloud_region, dataset_id, time_zone)

    out, _ = capsys.readouterr()

    # Check that the patch to the time zone worked
    assert 'UTC' in out
예제 #2
0
def test_patch_dataset(capsys):
    datasets.create_dataset(service_account_json, api_key, project_id,
                            cloud_region, dataset_id)

    datasets.patch_dataset(service_account_json, api_key, project_id,
                           cloud_region, dataset_id, time_zone)

    # Clean up
    datasets.delete_dataset(service_account_json, api_key, project_id,
                            cloud_region, dataset_id)

    out, _ = capsys.readouterr()

    # Check that the patch to the time zone worked
    assert 'UTC' in out
def test_patch_dataset(capsys):
    datasets.create_dataset(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id)

    datasets.patch_dataset(
        service_account_json,
        project_id,
        cloud_region,
        dataset_id,
        time_zone)

    # Clean up
    datasets.delete_dataset(
        service_account_json, project_id, cloud_region, dataset_id)

    out, _ = capsys.readouterr()

    # Check that the patch to the time zone worked
    assert 'UTC' in out
예제 #4
0
 def run_sample():
     datasets.patch_dataset(project_id, cloud_region, dataset_id, time_zone)