Skip to content

Commit

Permalink
Omit line from CodeCov covererage report because this case is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Apr 12, 2024
1 parent ab33375 commit 60e95f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annif/openapi/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, *args, **kwargs) -> None:

def _validate(self, body: Any) -> dict | None:
if not self._nullable and body is None:
raise BadRequestProblem("Request body must not be empty")
raise BadRequestProblem("Request body must not be empty") # noqa

Check warning on line 25 in annif/openapi/validation.py

View check run for this annotation

Codecov / codecov/patch

annif/openapi/validation.py#L25

Added line #L25 was not covered by tests
try:
return self._validator.validate(body)
except ValidationError as exception:
Expand Down

0 comments on commit 60e95f6

Please sign in to comment.