Skip to content

Commit 1923035

Browse files
ElienVandermaesenVITOsoxofaan
authored andcommitted
issue #254 fix test by making copy
1 parent 20b039d commit 1923035

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
@@ -555,7 +555,7 @@ def test_capabilities_caching_after_authenticate_basic(requests_mock):
555555
user, pwd = "john262", "J0hndo3"
556556

557557
def get_capabilities(request, context):
558-
endpoints = BASIC_ENDPOINTS
558+
endpoints = BASIC_ENDPOINTS.copy()
559559
if "Authorization" in request.headers:
560560
endpoints.append({"path": "/account/status", "methods": ["GET"]})
561561
return {"api_version": "1.0.0", "endpoints": endpoints}
@@ -588,11 +588,10 @@ def get_capabilities(request, context):
588588

589589

590590
def test_capabilities_caching_after_authenticate_oidc(requests_mock):
591-
requests_mock.get(API_URL, json={"api_version": "1.0.0"})
592591
client_id = "myclient"
593592

594593
def get_capabilities(request, context):
595-
endpoints = BASIC_ENDPOINTS
594+
endpoints = BASIC_ENDPOINTS.copy()
596595
if "Authorization" in request.headers:
597596
endpoints.append({"path": "/account/status", "methods": ["GET"]})
598597
return {"api_version": "1.0.0", "endpoints": endpoints}

0 commit comments

Comments
 (0)