Skip to content

Commit

Permalink
Shorten docstring and reuse existing test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-almeida committed Oct 23, 2024
1 parent c875598 commit 7040bab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions nomenclature/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ def cli_run_workflow(
default="definitions",
)
def cli_validate_scenarios(input_file: Path, definitions: Path):
"""Run a given input file through a DataStructureDefinition validation,
checking it against defined codelist(s)
"""Validate a scenario file against the codelists of a project
Parameters
----------
Expand Down

This file was deleted.

This file was deleted.

6 changes: 5 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ def test_cli_valid_scenarios(status, unit, exit_code, tmp_path):
"validate-scenarios",
str(tmp_path / f"{status}_data.xlsx"),
"--definitions",
str(MODULE_TEST_DATA_DIR / "validate_scenarios" / "definitions"),
str(
MODULE_TEST_DATA_DIR
/ "structure_validation_no_mappings"
/ "definitions"
),
],
)
assert result_valid.exit_code == exit_code

0 comments on commit 7040bab

Please sign in to comment.