File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ def test_capabilities_caching_after_authenticate_basic(requests_mock):
517517 user , pwd = "john262" , "J0hndo3"
518518
519519 def get_capabilities (request , context ):
520- endpoints = BASIC_ENDPOINTS
520+ endpoints = BASIC_ENDPOINTS . copy ()
521521 if "Authorization" in request .headers :
522522 endpoints .append ({"path" : "/account/status" , "methods" : ["GET" ]})
523523 return {"api_version" : "1.0.0" , "endpoints" : endpoints }
@@ -550,11 +550,10 @@ def get_capabilities(request, context):
550550
551551
552552def test_capabilities_caching_after_authenticate_oidc (requests_mock ):
553- requests_mock .get (API_URL , json = {"api_version" : "1.0.0" })
554553 client_id = "myclient"
555554
556555 def get_capabilities (request , context ):
557- endpoints = BASIC_ENDPOINTS
556+ endpoints = BASIC_ENDPOINTS . copy ()
558557 if "Authorization" in request .headers :
559558 endpoints .append ({"path" : "/account/status" , "methods" : ["GET" ]})
560559 return {"api_version" : "1.0.0" , "endpoints" : endpoints }
You can’t perform that action at this time.
0 commit comments