Skip to content

Commit

Permalink
issue #254 fix test by making copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ElienVandermaesenVITO committed Jan 8, 2025
1 parent 629abe9 commit 3a665fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/rest/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def test_capabilities_caching_after_authenticate_basic(requests_mock):
user, pwd = "john262", "J0hndo3"

def get_capabilities(request, context):
endpoints = BASIC_ENDPOINTS
endpoints = BASIC_ENDPOINTS.copy()
if "Authorization" in request.headers:
endpoints.append({"path": "/account/status", "methods": ["GET"]})
return {"api_version": "1.0.0", "endpoints": endpoints}
Expand Down Expand Up @@ -550,11 +550,10 @@ def get_capabilities(request, context):


def test_capabilities_caching_after_authenticate_oidc(requests_mock):
requests_mock.get(API_URL, json={"api_version": "1.0.0"})
client_id = "myclient"

def get_capabilities(request, context):
endpoints = BASIC_ENDPOINTS
endpoints = BASIC_ENDPOINTS.copy()
if "Authorization" in request.headers:
endpoints.append({"path": "/account/status", "methods": ["GET"]})
return {"api_version": "1.0.0", "endpoints": endpoints}
Expand Down

0 comments on commit 3a665fc

Please sign in to comment.