Skip to content

Commit 364c5b1

Browse files
Remove unneeded tests
These tests were for #400. But those changes are being removed, so we can remove those tests.
1 parent c498957 commit 364c5b1

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

tests/unit/test_client.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,6 @@ async def test__get_metadata_with_psc(credentials: FakeCredentials) -> None:
8181
}
8282

8383

84-
async def test__get_metadata_error(
85-
credentials: FakeCredentials,
86-
) -> None:
87-
"""
88-
Test that AlloyDB API error messages are raised for _get_metadata.
89-
"""
90-
client = AlloyDBClient(
91-
alloydb_api_endpoint="alloydb.googleapis.com",
92-
quota_project=None,
93-
credentials=credentials,
94-
)
95-
with pytest.raises(RetryError):
96-
await client._get_metadata(
97-
"my-project", "my-region", "my-cluster", "my-instance"
98-
)
99-
100-
10184
@pytest.mark.asyncio
10285
async def test__get_client_certificate(credentials: FakeCredentials) -> None:
10386
"""
@@ -115,23 +98,6 @@ async def test__get_client_certificate(credentials: FakeCredentials) -> None:
11598
assert cert_chain[2] == "This is the root cert"
11699

117100

118-
async def test__get_client_certificate_error(
119-
credentials: FakeCredentials,
120-
) -> None:
121-
"""
122-
Test that AlloyDB API error messages are raised for _get_client_certificate.
123-
"""
124-
client = AlloyDBClient(
125-
alloydb_api_endpoint="alloydb.googleapis.com",
126-
quota_project=None,
127-
credentials=credentials,
128-
)
129-
with pytest.raises(RetryError):
130-
await client._get_client_certificate(
131-
"my-project", "my-region", "my-cluster", ""
132-
)
133-
134-
135101
@pytest.mark.asyncio
136102
async def test_AlloyDBClient_init_(credentials: FakeCredentials) -> None:
137103
"""

0 commit comments

Comments
 (0)