update test

This commit is contained in:
egarette@silique.fr 2024-10-01 12:17:14 +02:00
parent 08520c7ab5
commit 62af6dbe7e

View file

@ -73,13 +73,14 @@ def test_dictionaries_warning(test_dir):
)
environment.run()
new_config = environment.config
new_config_dict = dict(new_config.value.get())
new_config_dict = dict(option_value(new_config.value.get()))
# expected output
with open(Path('tests') / 'envvars' / current_dirname / 'makedict' / 'all.env') as json_file:
expected = load(json_file)
# here is the effective test
for key, value in new_config_dict.items():
assert expected[key.name()] == value
assert expected == new_config_dict
# for key, value in new_config_dict.items():
# assert expected[key.name()] == value
def populate(dest_dir, rougailconfig):