Skip to content
Snippets Groups Projects
Commit b65b44c3 authored by yvesn's avatar yvesn
Browse files

SSDM-7140: fixing tests

parent dbbdfd73
No related merge requests found
...@@ -10,7 +10,11 @@ from .. import data_mgmt ...@@ -10,7 +10,11 @@ from .. import data_mgmt
def test_prepare_run(monkeypatch): def test_prepare_run(monkeypatch):
# given # given
dm = data_mgmt.DataMgmt(openbis=Mock()) dm = data_mgmt.DataMgmt(openbis=Mock(), git_config={
'data_path': '',
'metadata_path': '',
'invocation_path': ''
})
openbis_command = OpenbisCommand(dm) openbis_command = OpenbisCommand(dm)
monkeypatch.setattr(getpass, 'getpass', lambda s: 'password') monkeypatch.setattr(getpass, 'getpass', lambda s: 'password')
dm.openbis.is_session_active.return_value = False dm.openbis.is_session_active.return_value = False
...@@ -20,15 +24,6 @@ def test_prepare_run(monkeypatch): ...@@ -20,15 +24,6 @@ def test_prepare_run(monkeypatch):
dm.openbis.is_session_active.assert_called() dm.openbis.is_session_active.assert_called()
dm.openbis.login.assert_called_with('auser', 'password', save_token=True) dm.openbis.login.assert_called_with('auser', 'password', save_token=True)
# TODO
# def test_determine_hostname():
# # given
# dm = data_mgmt.DataMgmt(openbis=Mock())
# openbis_command = OpenbisCommand(dm)
# define_config(openbis_command)
# # when
# openbis_command.determine_hostname()
# # then
def define_config(openbis_command): def define_config(openbis_command):
openbis_command.config_dict = { openbis_command.config_dict = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment