Skip to content

Commit

Permalink
test both variants
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Oct 31, 2023
1 parent 7e88167 commit a57d216
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/json/test_poetry_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ def test_multi_url_dependencies(multi_url_object: dict[str, Any]) -> None:
assert len(validate_object(multi_url_object, "poetry-schema")) == 0


def test_git_dependencies(base_object: dict[str, Any]) -> None:
base_object["dependencies"].update(
{"git-dependency": {"git": "[email protected]:example/example-repository.git"}}
)
@pytest.mark.parametrize(
"git",
[
"https://github.com/example/example-repository.git",
"[email protected]:example/example-repository.git",
],
)
def test_git_dependencies(base_object: dict[str, Any], git: str) -> None:
base_object["dependencies"].update({"git-dependency": {"git": git}})

assert len(validate_object(base_object, "poetry-schema")) == 0

Expand Down

0 comments on commit a57d216

Please sign in to comment.