MCPcopy Index your code
hub / github.com/treeverse/dvc / test_parse_params

Function test_parse_params

tests/unit/utils/test_cli_parse.py:6–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def test_parse_params():
7 assert parse_params(
8 [
9 "param1",
10 "file1:param1,param2",
11 "file2:param2",
12 "file1:param3,param4,",
13 "param2,param10",
14 "param3,",
15 "file3:",
16 ]
17 ) == [
18 {"params.yaml": ["param1", "param2", "param10", "param3"]},
19 {"file1": ["param1", "param2", "param3", "param4"]},
20 {"file2": ["param2"]},
21 {"file3": []},
22 ]
23
24
25@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

parse_paramsFunction · 0.90

Tested by

no test coverage detected