Skip to content

Commit 6a19215

Browse files
committed
make pylint happy
1 parent f817a52 commit 6a19215

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/web/server/tests/unit/with_dbs/03/test_storage_rpc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# pylint: disable=redefined-outer-name
2+
# pylint: disable=unused-argument
13
from datetime import datetime
24
from pathlib import Path
35
from typing import Any, Callable
@@ -135,7 +137,7 @@ async def test_get_async_jobs_status(
135137
elif isinstance(backend_result_or_exception, StatusError):
136138
assert response.status == status.HTTP_500_INTERNAL_SERVER_ERROR
137139
else:
138-
raise Exception("Test incorrectly configured")
140+
pytest.fail("Incorrectly configured test")
139141

140142

141143
@pytest.mark.parametrize("user_role", [UserRole.USER])
@@ -188,7 +190,7 @@ async def test_get_async_job_result(
188190
elif isinstance(backend_result_or_exception, ResultError):
189191
assert response.status == status.HTTP_500_INTERNAL_SERVER_ERROR
190192
else:
191-
raise Exception("Test incorrectly configured")
193+
pytest.fail("Incorrectly configured test")
192194

193195

194196
@pytest.mark.parametrize("user_role", [UserRole.USER])

0 commit comments

Comments
 (0)