Skip to content

Commit

Permalink
Remove incorrect docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Dec 19, 2022
1 parent b365892 commit 968ea7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/tox_env/python/pip/test_req_file.py
Expand Up @@ -41,7 +41,6 @@ def test_deps_with_requirements_with_hash(tmp_path: Path) -> None:


def test_deps_with_no_deps(tmp_path: Path) -> None:
"""deps with --hash should raise an exception."""
(tmp_path / "r.txt").write_text("urrlib3")
python_deps = PythonDeps(raw="-rr.txt\n--no-deps", root=tmp_path)

Expand All @@ -54,15 +53,13 @@ def test_deps_with_no_deps(tmp_path: Path) -> None:


def test_req_with_no_deps(tmp_path: Path) -> None:
"""deps with --hash should raise an exception."""
(tmp_path / "r.txt").write_text("--no-deps")
python_deps = PythonDeps(raw="-rr.txt", root=tmp_path)
with pytest.raises(ValueError, match="unrecognized arguments: --no-deps"):
python_deps.requirements


def test_opt_only_req_file(tmp_path: Path) -> None:
"""deps with --hash should raise an exception."""
(tmp_path / "r.txt").write_text("--use-feature fast-deps")
python_deps = PythonDeps(raw="-rr.txt", root=tmp_path)
assert not python_deps.requirements
Expand Down

0 comments on commit 968ea7d

Please sign in to comment.