diff --git a/samples/ingredients/instances/create_start_instance/create_with_existing_disks.py b/samples/ingredients/instances/create_start_instance/create_with_existing_disks.py index 2affc851d..c4b90a62f 100644 --- a/samples/ingredients/instances/create_start_instance/create_with_existing_disks.py +++ b/samples/ingredients/instances/create_start_instance/create_with_existing_disks.py @@ -37,7 +37,7 @@ def create_with_existing_disks(project_id: str, zone: str, instance_name: str, d Returns: Instance object. """ - assert(len(disk_names) >= 1) + assert len(disk_names) >= 1 disks = [get_disk(project_id, zone, disk_name) for disk_name in disk_names] attached_disks = [] for disk in disks: diff --git a/samples/requirements-test.txt b/samples/requirements-test.txt index db25a3839..bbbe35ef9 100644 --- a/samples/requirements-test.txt +++ b/samples/requirements-test.txt @@ -1,4 +1,4 @@ pytest==7.1.2 pytest-parallel==0.1.1 flaky==3.7.0 -google-cloud-storage==2.3.0 +google-cloud-storage==2.4.0 diff --git a/samples/requirements.txt b/samples/requirements.txt index d759b1ec2..97e6e4842 100644 --- a/samples/requirements.txt +++ b/samples/requirements.txt @@ -1,3 +1,3 @@ isort==5.10.1 -black==22.3.0 -google-cloud-compute==1.3.2 +black==22.6.0 +google-cloud-compute==1.4.0 diff --git a/samples/snippets/tests/test_disks.py b/samples/snippets/tests/test_disks.py index e0d367554..b847bc206 100644 --- a/samples/snippets/tests/test_disks.py +++ b/samples/snippets/tests/test_disks.py @@ -42,9 +42,9 @@ def test_disk_create_delete(autodelete_disk_name): debian_image = get_image_from_family('debian-cloud', 'debian-11') disk = create_disk_from_image(PROJECT, ZONE, autodelete_disk_name, disk_type, 17, debian_image.self_link) - assert(disk.name == autodelete_disk_name) - assert(disk.type_.endswith(disk_type)) - assert(disk.size_gb == 17) + assert disk.name == autodelete_disk_name + assert disk.type_.endswith(disk_type) + assert disk.size_gb == 17 for i_disk in list_disks(PROJECT, ZONE): if i_disk.name == autodelete_disk_name: diff --git a/samples/snippets/tests/test_snapshots.py b/samples/snippets/tests/test_snapshots.py index 7e52dcb22..b62978788 100644 --- a/samples/snippets/tests/test_snapshots.py +++ b/samples/snippets/tests/test_snapshots.py @@ -45,8 +45,8 @@ def test_disk(): def test_snapshot_create_delete(test_disk): snapshot_name = "test-snapshot-" + uuid.uuid4().hex[:10] snapshot = create_snapshot(PROJECT, test_disk.name, snapshot_name, zone=ZONE) - assert(snapshot.name == snapshot_name) - assert(snapshot.source_disk == test_disk.self_link) + assert snapshot.name == snapshot_name + assert snapshot.source_disk == test_disk.self_link for i_snapshot in list_snapshots(PROJECT): if i_snapshot.name == snapshot_name: break diff --git a/setup.py b/setup.py index cc6624a86..a9752c7ca 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,6 @@ "google-api-core[grpc] >= 2.8.0, <3.0.0dev", "proto-plus >= 1.19.7, <2.0.0dev", "protobuf >= 3.19.0, <4.0.0dev", - "dataclasses >= 0.6; python_version < '3.7'", ), python_requires=">=3.7", classifiers=[