Skip to content

Commit ccf292a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 07d756e commit ccf292a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/test_flagsmith.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,14 @@ def test_non_200_response_raises_flagsmith_api_error(flagsmith: Flagsmith) -> No
278278
# expected exception raised
279279

280280

281-
@pytest.mark.parametrize('settings, expected_timeout', [
282-
({'request_timeout_seconds': 5}, 5), # Arbitrary timeout
283-
({'request_timeout_seconds': None}, None), # No timeout is forced
284-
({}, 10), # Default timeout
285-
])
281+
@pytest.mark.parametrize(
282+
"settings, expected_timeout",
283+
[
284+
({"request_timeout_seconds": 5}, 5), # Arbitrary timeout
285+
({"request_timeout_seconds": None}, None), # No timeout is forced
286+
({}, 10), # Default timeout
287+
],
288+
)
286289
def test_request_times_out_according_to_setting(
287290
mocker: MockerFixture,
288291
api_key: str,
@@ -302,7 +305,7 @@ def test_request_times_out_according_to_setting(
302305

303306
# Then
304307
session.get.assert_called_once_with(
305-
'https://edge.api.flagsmith.com/api/v1/flags/',
308+
"https://edge.api.flagsmith.com/api/v1/flags/",
306309
json=None,
307310
timeout=expected_timeout,
308311
)

0 commit comments

Comments
 (0)