feat(ruff): add pytest linting rule (#2053)
* feat(ruff): add pytest linting rule * --unsafe-fixes * fix(pre_commit): 🎨 auto format pre-commit hooks --------- Co-authored-by: jiri BOROVEC <jirka@Jiris-MacBook-Pro-J4N257Y6Q2.local> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
jiri BOROVEC
pre-commit-ci[bot]
Copilot
Copilot
parent
f1e0c9cdd7
commit
09de0f4f06
@@ -11,7 +11,7 @@ from test.test_utils import mock_detections
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"detections, detection_idx, color_lookup, expected_result, exception",
|
||||
("detections", "detection_idx", "color_lookup", "expected_result", "exception"),
|
||||
[
|
||||
(
|
||||
mock_detections(
|
||||
@@ -111,7 +111,7 @@ def test_resolve_color_idx(
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"text, max_line_length, expected_result, exception",
|
||||
("text", "max_line_length", "expected_result", "exception"),
|
||||
[
|
||||
(None, None, [""], DoesNotRaise()), # text is None
|
||||
("", None, [""], DoesNotRaise()), # empty string
|
||||
|
||||
Reference in New Issue
Block a user