Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yshalenyk committed Aug 9, 2024
1 parent 775d172 commit 8115b03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nightingale/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def run(
# TODO: simplify this
config_data["mapping"] = {
"file": mapping_file or config_data["mapping"]["file"],
"codelists": codelists_file or config_data["mapping"]["codelists"],
"codelists": codelists_file or config_data["mapping"].get("codelists"),
"ocid_prefix": ocid_prefix or config_data["mapping"]["ocid_prefix"],
"selector": selector_content,
"force_publish": force_publish
Expand Down
2 changes: 2 additions & 0 deletions tests/test_mapping_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def test_read_schema_sheet(mock_load_workbook, mock_workbook, mock_config):

expected_schema = {
"/array_path": {
"codelist": None,
"title": "title1",
"description": "description1",
"type": "array",
Expand All @@ -206,6 +207,7 @@ def test_read_schema_sheet(mock_load_workbook, mock_workbook, mock_config):
"links": "links1",
},
"/path1": {
"codelist": None,
"title": "title2",
"description": "description2",
"type": "string",
Expand Down

0 comments on commit 8115b03

Please sign in to comment.