Skip to content
Prev Previous commit
Next Next commit
Fix oversight from 1335
  • Loading branch information
PGijsbers committed Sep 19, 2024
commit 51b265920f84c42e06ee5c6ba5f40bcfcced0d6c
4 changes: 3 additions & 1 deletion tests/test_openml/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def test_get_config_as_dict(self):
_config["avoid_duplicate_runs"] = False
_config["connection_n_retries"] = 20
_config["retry_policy"] = "robot"
_config["show_progress"] = False
Comment thread
LennartPurucker marked this conversation as resolved.
assert isinstance(config, dict)
assert len(config) == 6
assert len(config) == 7
self.assertDictEqual(config, _config)

def test_setup_with_config(self):
Expand All @@ -62,6 +63,7 @@ def test_setup_with_config(self):
_config["avoid_duplicate_runs"] = True
_config["retry_policy"] = "human"
_config["connection_n_retries"] = 100
_config["show_progress"] = False
orig_config = openml.config.get_config_as_dict()
openml.config._setup(_config)
updated_config = openml.config.get_config_as_dict()
Expand Down