Skip to content

Commit

Permalink
chore: Fix deprecation warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
relekang committed Jul 29, 2022
1 parent e09cc3c commit 47130a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_vcs_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ def test_checkout_should_checkout_correct_branch(mock_git):
@pytest.mark.parametrize(
"pattern, skip_tags,expected_result",
[
("(\d+.\d+.\d+)", None, "2.0.0"),
("(\d+.\d+.\d+)", ["v2.0.0"], "1.1.0"),
("(\d+.\d+.\d+)", ["v0.1.0", "v1.0.0", "v1.1.0", "v2.0.0"], None),
(r"(\d+.\d+.\d+)", None, "2.0.0"),
(r"(\d+.\d+.\d+)", ["v2.0.0"], "1.1.0"),
(r"(\d+.\d+.\d+)", ["v0.1.0", "v1.0.0", "v1.1.0", "v2.0.0"], None),
],
)
def test_get_last_version(pattern, skip_tags, expected_result):
Expand Down

0 comments on commit 47130a4

Please sign in to comment.