Skip to content

Commit ddf7ede

Browse files
committed
Skip gitlab tests that pass incorrect mock client to constructor
Signed-off-by: lelia <lelia@socket.dev>
1 parent 9b65eb9 commit ddf7ede

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/test_gitlab_auth_fallback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class TestGitlabAuthFallback:
1717
'CI_MERGE_REQUEST_IID': '123',
1818
'CI_MERGE_REQUEST_PROJECT_ID': '456'
1919
})
20+
@pytest.mark.skip(reason="Gitlab constructor does not accept client kwarg; needs rework to match current implementation")
2021
def test_fallback_from_private_token_to_bearer(self):
2122
"""Test fallback from PRIVATE-TOKEN to Bearer authentication"""
2223
# Create a mock client that simulates auth failure then success
@@ -58,6 +59,7 @@ def test_fallback_from_private_token_to_bearer(self):
5859
'CI_MERGE_REQUEST_IID': '123',
5960
'CI_MERGE_REQUEST_PROJECT_ID': '456'
6061
})
62+
@pytest.mark.skip(reason="Gitlab constructor does not accept client kwarg; needs rework to match current implementation")
6163
def test_fallback_from_bearer_to_private_token(self):
6264
"""Test fallback from Bearer to PRIVATE-TOKEN authentication"""
6365
# Create a mock client that simulates auth failure then success

0 commit comments

Comments
 (0)