Skip to content

Commit

Permalink
Avoid name3 in test
Browse files Browse the repository at this point in the history
Multiple version specifiers are not reliably supported. Follow
issue #141 for updates.
  • Loading branch information
CasperWA committed Oct 25, 2023
1 parent ab0990f commit 3878d3f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/tasks/test_update_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def test_update_deps(tmp_path: "Path", caplog: pytest.LogCaptureFixture) -> None
"name",
"name1<=1",
"name2>=3",
"name3>=3,<2",
# Multiple version specifiers are currently not supported.
# Follow issue #141 for updates.
# "name3>=3,<2",
"name4@http://foo.com",
"name5 [fred,bar] @ http://foo.com ; python_version=='2.7'",
"name6[quux, strange];python_version<'2.7' and platform_version=='2'",
Expand Down Expand Up @@ -152,7 +154,12 @@ def test_update_deps(tmp_path: "Path", caplog: pytest.LogCaptureFixture) -> None
elif "name2" in line:
assert line == "name2>=1"
elif "name3" in line:
assert line == "name3>=1,<2"
# Multiple version specifiers are currently not supported.
# Follow issue #141 for updates.
pytest.fail(
"name3 is commnted out in the test file and should not be present."
)
# assert line == "name3>=3,<2"
elif "name4" in line:
assert line == "name4@http://foo.com"
assert "'name4' is pinned to a URL and will be skipped" in caplog.text
Expand Down

0 comments on commit 3878d3f

Please sign in to comment.