From ab5e2579d1d3c6be3133a964bec9eec98582e77e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 17:53:26 +0200 Subject: [PATCH] chore(deps): update all dependencies (#310) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert * lint Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- .../create_start_instance/create_with_existing_disks.py | 2 +- compute/compute/requirements-test.txt | 2 +- compute/compute/requirements.txt | 4 ++-- compute/compute/snippets/tests/test_disks.py | 6 +++--- compute/compute/snippets/tests/test_snapshots.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/compute/compute/ingredients/instances/create_start_instance/create_with_existing_disks.py b/compute/compute/ingredients/instances/create_start_instance/create_with_existing_disks.py index 2affc851d478..c4b90a62f93b 100644 --- a/compute/compute/ingredients/instances/create_start_instance/create_with_existing_disks.py +++ b/compute/compute/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/compute/compute/requirements-test.txt b/compute/compute/requirements-test.txt index db25a3839719..bbbe35ef9b32 100644 --- a/compute/compute/requirements-test.txt +++ b/compute/compute/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/compute/compute/requirements.txt b/compute/compute/requirements.txt index d759b1ec2623..97e6e4842f8d 100644 --- a/compute/compute/requirements.txt +++ b/compute/compute/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/compute/compute/snippets/tests/test_disks.py b/compute/compute/snippets/tests/test_disks.py index e0d3675543ca..b847bc206eff 100644 --- a/compute/compute/snippets/tests/test_disks.py +++ b/compute/compute/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/compute/compute/snippets/tests/test_snapshots.py b/compute/compute/snippets/tests/test_snapshots.py index 7e52dcb227a1..b62978788e37 100644 --- a/compute/compute/snippets/tests/test_snapshots.py +++ b/compute/compute/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