Skip to content

Commit a5f1ad4

Browse files
committed
format
1 parent e87251c commit a5f1ad4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:
5454
# Check if this is a strict validation test (True parameter)
5555
client_param = item.callspec.params.get("client", None)
5656
async_client_param = item.callspec.params.get("async_client", None)
57-
57+
5858
is_strict = False
5959
if client_param is True:
6060
is_strict = True
@@ -64,7 +64,11 @@ def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:
6464
is_strict = True
6565

6666
if is_strict:
67-
reason = skip_marker.kwargs.get("reason", "Skip strict validation test") if skip_marker.kwargs else "Skip strict validation test"
67+
reason = (
68+
skip_marker.kwargs.get("reason", "Skip strict validation test")
69+
if skip_marker.kwargs
70+
else "Skip strict validation test"
71+
)
6872
item.add_marker(pytest.mark.skip(reason=reason))
6973

7074

0 commit comments

Comments
 (0)