From a57d2162688888f197f9ee2285cccd99bd3f24b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:40:21 +0100 Subject: [PATCH] test both variants --- tests/json/test_poetry_schema.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/json/test_poetry_schema.py b/tests/json/test_poetry_schema.py index 84e30a822..c4bc26fbc 100644 --- a/tests/json/test_poetry_schema.py +++ b/tests/json/test_poetry_schema.py @@ -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": "git@github.com:example/example-repository.git"}} - ) +@pytest.mark.parametrize( + "git", + [ + "https://github.com/example/example-repository.git", + "git@github.com: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