Skip to content

Commit 9723487

Browse files
committed
Fix up some failing tests
They got in with the last MR - missed that in the workflow!
1 parent d1de5aa commit 9723487

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

servicex/servicex_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def get_servicex_adaptor_config(self, backend_type: Optional[str] = None) -> \
9090
`.servicex` file.
9191
9292
Returns:
93-
Tuple[str, str, str]: The tuple of info to create a `ServiceXAdaptor`: end point,
94-
email, and password.
93+
Tuple[str, str]: The tuple of info to create a `ServiceXAdaptor`: end point,
94+
token.
9595
'''
9696
# Find a list of all endpoints.
9797
# It is an error if this is not specified somewhere.

tests/test_servicex.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def test_default_ctor_cache(mocker):
6363

6464
config = mocker.MagicMock(spec=ServiceXConfigAdaptor)
6565
config.settings = Configuration('servicex', 'servicex')
66-
config.get_servicex_adaptor_config.return_value = ('http://no-way.dude', 'j@yaol.com',
67-
'no_spoon_there_is')
66+
config.get_servicex_adaptor_config.return_value = ('http://no-way.dude', '1232j322432j22token')
6867

6968
cache = mocker.MagicMock(spec=Cache)
7069
cache_create_call = mocker.patch('servicex.servicex.Cache', return_value=cache)
@@ -80,8 +79,7 @@ def test_default_ctor_cache_no(mocker):
8079

8180
config = mocker.MagicMock(spec=ServiceXConfigAdaptor)
8281
config.settings = Configuration('servicex', 'servicex')
83-
config.get_servicex_adaptor_config.return_value = ('http://no-way.dude', 'j@yaol.com',
84-
'no_spoon_there_is')
82+
config.get_servicex_adaptor_config.return_value = ('http://no-way.dude', 'j@1232j322432j22token.com')
8583

8684
cache = mocker.MagicMock(spec=Cache)
8785
cache_create_call = mocker.patch('servicex.servicex.Cache', return_value=cache)
@@ -97,8 +95,7 @@ def test_ignore_cache_on_ds(mocker):
9795

9896
config = mocker.MagicMock(spec=ServiceXConfigAdaptor)
9997
config.settings = Configuration('servicex', 'servicex')
100-
config.get_servicex_adaptor_config.return_value = ('http://no-way.dude', 'j@yaol.com',
101-
'no_spoon_there_is')
98+
config.get_servicex_adaptor_config.return_value = ('http://no-way.dude', '1232j322432j22token')
10299

103100
got_called = False
104101
@contextmanager

0 commit comments

Comments
 (0)