From 4c85792b7d99444bbe08f3337e1374eb3aed682e Mon Sep 17 00:00:00 2001 From: Minh Nguyen Cong Date: Fri, 28 Jul 2023 16:19:43 +0200 Subject: [PATCH] Update code --- test/unit/session/test_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/session/test_session.py b/test/unit/session/test_session.py index 2e920ce5..077fb25d 100644 --- a/test/unit/session/test_session.py +++ b/test/unit/session/test_session.py @@ -232,7 +232,7 @@ def test_box_session_raises_for_non_json_response_after_retry(box_session, mock_ # pylint:disable=redefined-outer-name API.MAX_RETRY_ATTEMPTS = 1 mock_network_layer.request.side_effect = [non_json_response] * (API.MAX_RETRY_ATTEMPTS + 1) - + with pytest.raises(BoxAPIException): box_session.get(url=test_url) API.MAX_RETRY_ATTEMPTS = 5