Skip to content

Commit a676655

Browse files
committed
fix style/format
1 parent 47c80c5 commit a676655

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

braze/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import time
22

33
import requests
4-
from requests.exceptions import RequestException
54
from tenacity import retry
65
from tenacity import stop_after_attempt
76
from tenacity import wait_random_exponential

tests/braze/test_client.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import time
22

3-
from braze.client import _wait_random_exp_or_rate_limit, BrazeClientError, \
4-
BrazeInternalServerError
3+
from braze.client import _wait_random_exp_or_rate_limit
54
from braze.client import BrazeClient
5+
from braze.client import BrazeClientError
6+
from braze.client import BrazeInternalServerError
67
from braze.client import BrazeRateLimitError
78
from braze.client import MAX_RETRIES
89
from braze.client import MAX_WAIT_SECONDS
@@ -95,9 +96,7 @@ def test_user_track_request_exception(
9596
self, braze_client, mocker, attributes, events, purchases
9697
):
9798
mocker.patch.object(
98-
BrazeClient,
99-
"_post_request_with_retries",
100-
side_effect=RequestException,
99+
BrazeClient, "_post_request_with_retries", side_effect=RequestException
101100
)
102101

103102
with pytest.raises(RequestException):
@@ -109,9 +108,7 @@ def test_user_track_request_exception(
109108

110109
@pytest.mark.parametrize(
111110
"status_code, retry_attempts, error",
112-
[
113-
(500, MAX_RETRIES, BrazeInternalServerError),
114-
(401, 1, BrazeClientError)]
111+
[(500, MAX_RETRIES, BrazeInternalServerError), (401, 1, BrazeClientError)],
115112
)
116113
def test_retries_for_errors(
117114
self,

0 commit comments

Comments
 (0)