File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
services/web/server/tests/unit/with_dbs/03 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ # pylint: disable=redefined-outer-name
2+ # pylint: disable=unused-argument
13from datetime import datetime
24from pathlib import Path
35from 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 ])
You can’t perform that action at this time.
0 commit comments