Skip to content

Commit d05bf0e

Browse files
committed
🚒 Added get_auth_token() prototype to service and mockup
1 parent 5141780 commit d05bf0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git_repo/services/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_service(cls, repository, command):
122122
return cls._current
123123

124124
@classmethod
125-
def get_auth_token(cls, login, password):
125+
def get_auth_token(cls, login, password, prompt=None):
126126
raise NotImplementedError
127127

128128
def __init__(self, r=None, c=None):

tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def request_create(self, *args, **kwarg):
122122
return {'local': local, 'remote': remote, 'ref': 42}
123123

124124
@classmethod
125-
def get_auth_token(cls, login, password):
125+
def get_auth_token(cls, login, password, prompt=None):
126126
return '{}:{}'.format(login, password)
127127

128128
@property

0 commit comments

Comments
 (0)