Fix more tests

This commit is contained in:
Matthias
2020-08-06 09:00:28 +02:00
parent 081625c5dc
commit 59370672b8
2 changed files with 5 additions and 4 deletions

View File

@@ -247,7 +247,7 @@ def test_hyperoptlossresolver_wrongname(default_conf) -> None:
HyperOptLossResolver.load_hyperoptloss(default_conf)
def test_start_not_installed(mocker, default_conf) -> None:
def test_start_not_installed(mocker, default_conf, import_fails) -> None:
start_mock = MagicMock()
patched_configuration_load_config_file(mocker, default_conf)
@@ -258,6 +258,8 @@ def test_start_not_installed(mocker, default_conf) -> None:
'hyperopt',
'--config', 'config.json',
'--hyperopt', 'DefaultHyperOpt',
'--hyperopt-path',
str(Path(__file__).parent / "hyperopts"),
'--epochs', '5'
]
pargs = get_args(args)