Skip to content

Commit 3a665fc

Browse files
issue #254 fix test by making copy
1 parent 629abe9 commit 3a665fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/rest/test_connection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

552552
def 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}

0 commit comments

Comments
 (0)