mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-13 15:28:27 +01:00
move parsing params to utils (#5259)
* move parsing params to utils * fix tests * move chunk_dict and test it * update test
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from dvc.utils.cli_parse import parse_params_from_cli
|
||||
|
||||
|
||||
def test_parse_params():
|
||||
assert parse_params_from_cli(
|
||||
[
|
||||
"param1",
|
||||
"file1:param1,param2",
|
||||
"file2:param2",
|
||||
"file1:param3,param4,",
|
||||
"param2,param10",
|
||||
"param3,",
|
||||
"file3:",
|
||||
]
|
||||
) == {
|
||||
"params.yaml": ["param1", "param2", "param10", "param3"],
|
||||
"file1": ["param1", "param2", "param3", "param4"],
|
||||
"file2": ["param2"],
|
||||
"file3": [],
|
||||
}
|
||||
Reference in New Issue
Block a user