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 @@ -555,7 +555,7 @@ def test_capabilities_caching_after_authenticate_basic(requests_mock):
555
555
user , pwd = "john262" , "J0hndo3"
556
556
557
557
def get_capabilities (request , context ):
558
- endpoints = BASIC_ENDPOINTS
558
+ endpoints = BASIC_ENDPOINTS . copy ()
559
559
if "Authorization" in request .headers :
560
560
endpoints .append ({"path" : "/account/status" , "methods" : ["GET" ]})
561
561
return {"api_version" : "1.0.0" , "endpoints" : endpoints }
@@ -588,11 +588,10 @@ def get_capabilities(request, context):
588
588
589
589
590
590
def test_capabilities_caching_after_authenticate_oidc (requests_mock ):
591
- requests_mock .get (API_URL , json = {"api_version" : "1.0.0" })
592
591
client_id = "myclient"
593
592
594
593
def get_capabilities (request , context ):
595
- endpoints = BASIC_ENDPOINTS
594
+ endpoints = BASIC_ENDPOINTS . copy ()
596
595
if "Authorization" in request .headers :
597
596
endpoints .append ({"path" : "/account/status" , "methods" : ["GET" ]})
598
597
return {"api_version" : "1.0.0" , "endpoints" : endpoints }
You can’t perform that action at this time.
0 commit comments