Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Dec 21, 2023
1 parent f7f48f0 commit 9229cf3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_process_config_defaults.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
from os.path import join

from hdx.utilities.loader import load_and_merge_yaml

from hapi.pipelines.utilities.process_config_defaults import add_defaults


def test_process_config_defaults():
config_dict = load_and_merge_yaml(
["tests/test_process_config_defaults.yaml"]
[join("tests", "test_process_config_defaults.yaml")]
)
config_dict = add_defaults(config_dict)
expecdted_config_dict = {
"theme_name_national": {
"theme_name_foo": {
"other_parmas": "pass",
"other_params": "pass",
"input": ["c4", "c1", "c2", "c3"],
"list": ["c4", "c1", "c2", "c3"],
"output": ["c4", "c1", "c2", "c3"],
"output_hxl": ["#c4", "#c1", "#c2", "#c3"],
},
"theme_name_bar": {
"other_parmas": "pass",
"other_params": "pass",
"input": ["c1", "c2", "c3"],
"list": ["c1", "c2", "c3"],
"output": ["c1", "c2", "c3"],
Expand Down

0 comments on commit 9229cf3

Please sign in to comment.