File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import base64
3- import os
43import time
54from collections .abc import Iterable
65from pathlib import Path
@@ -336,24 +335,6 @@ def mock_jwks_fetch(json_web_keyset: JWK):
336335 return patch ("jwt.PyJWKClient.fetch_data" , mock )
337336
338337
339- # Prevent pytest from catching exceptions when debugging in vscode so that break on
340- # exception works correctly (see: https://github.com/pytest-dev/pytest/issues/7409)
341- if os .getenv ("PYTEST_RAISE" , "0" ) == "1" :
342-
343- @pytest .hookimpl (tryfirst = True )
344- def pytest_exception_interact (call : pytest .CallInfo [Any ]):
345- if call .excinfo is not None :
346- raise call .excinfo .value
347- else :
348- raise RuntimeError (
349- f"{ call } has no exception data, an unknown error has occurred"
350- )
351-
352- @pytest .hookimpl (tryfirst = True )
353- def pytest_internalerror (excinfo : pytest .ExceptionInfo [Any ]):
354- raise excinfo .value
355-
356-
357338@pytest .fixture (scope = "module" )
358339def mock_numtracker_server () -> Iterable [responses .RequestsMock ]:
359340 query_working = {
You can’t perform that action at this time.
0 commit comments