Skip to content

Commit

Permalink
add test for multiple paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed Jul 1, 2024
1 parent 8930765 commit acbbcd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yamale/tests/command_line_fixtures/yamls/good2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
map:
good: "world"
yes: 4
7 changes: 7 additions & 0 deletions yamale/tests/test_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ def test_good_yaml(parser):
command_line._router(["yamale/tests/command_line_fixtures/yamls/good.yaml"], "schema.yaml", 1, parser)


def test_multiple_paths_good_yaml():
command_line._router([
"yamale/tests/command_line_fixtures/yamls/good.yaml",
"yamale/tests/command_line_fixtures/yamls/good2.yaml",
], "schema.yaml", 1, "PyYAML")


@pytest.mark.parametrize("parser", parsers)
def test_good_relative_yaml(parser):
command_line._router(
Expand Down

0 comments on commit acbbcd7

Please sign in to comment.