Skip to content

Commit

Permalink
Deleted mock tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoughtseize1 committed Dec 11, 2024
1 parent d2ba844 commit 9c8cec8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions compute/client_library/snippets/tests/test_consistency_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# limitations under the License.
import os

from unittest.mock import patch

import uuid

import pytest
Expand All @@ -23,9 +21,6 @@
from ..disks.сonsistency_groups.add_disk_consistency_group import (
add_disk_consistency_group,
)
from ..disks.сonsistency_groups.clone_disks_consistency_group import (
clone_disks_to_consistency_group,
)
from ..disks.сonsistency_groups.create_consistency_group import create_consistency_group
from ..disks.сonsistency_groups.delete_consistency_group import delete_consistency_group
from ..disks.сonsistency_groups.list_disks_consistency_group import (
Expand Down Expand Up @@ -99,10 +94,3 @@ def test_add_remove_and_list_disks_consistency_group(
consistency_group_region=REGION,
)
assert not disks


def test_clone_disk_consistency_group():
with patch("google.cloud.compute_v1.RegionDisksClient") as mock_client:
client = mock_client.return_value
clone_disks_to_consistency_group(PROJECT_ID, "group-4", "us-east1")
client.bulk_insert.assert_called_once()

0 comments on commit 9c8cec8

Please sign in to comment.