Skip to content

Commit afee6bc

Browse files
committed
test: ignore our own deprecation warnings
1 parent ca250a9 commit afee6bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/unit/images/test_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ def test_get_all(self, images_client, two_images_response, params):
216216

217217
def test_get_by_name(self, images_client, one_images_response):
218218
images_client._client.request.return_value = one_images_response
219-
image = images_client.get_by_name("ubuntu-20.04")
219+
with pytest.deprecated_call():
220+
image = images_client.get_by_name("ubuntu-20.04")
220221

221222
params = {"name": "ubuntu-20.04"}
222223

tests/unit/server_types/test_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def test_bound_server_type_init(self, server_type_response):
3535
assert bound_server_type.deprecation.unavailable_after == datetime(
3636
2023, 9, 1, tzinfo=timezone.utc
3737
)
38-
assert bound_server_type.included_traffic == 21990232555520
38+
with pytest.deprecated_call():
39+
assert bound_server_type.included_traffic == 21990232555520
3940

4041

4142
class TestServerTypesClient:

0 commit comments

Comments
 (0)