Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit d6f5efc

Browse files
committed
Silenced useless warning in a test
1 parent 8852090 commit d6f5efc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_validate_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ def create_user(user_id: int):
593593
return f"{user_id}"
594594

595595
def test_valid_request(self, client):
596-
response = client.post("/users/123", json={"user_id": 456})
596+
with warnings.catch_warnings(record=True):
597+
response = client.post("/users/123", json={"user_id": 456})
597598
assert response.status_code == 200
598599
assert response.text == "456"
599600

0 commit comments

Comments
 (0)