Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing "session" fixtures in tests/unit/test_req_file.py #10494

Merged
merged 1 commit into from Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file.
4 changes: 2 additions & 2 deletions tests/unit/test_req_file.py
Expand Up @@ -66,7 +66,7 @@ def parse_reqfile(
yield install_req_from_parsed_requirement(parsed_req, isolated=isolated)


def test_read_file_url(tmp_path):
def test_read_file_url(tmp_path, session):
reqs = tmp_path.joinpath("requirements.txt")
reqs.write_text("foo")
result = list(parse_requirements(reqs.as_posix(), session))
Expand Down Expand Up @@ -302,7 +302,7 @@ def test_yield_editable_constraint(self, line_processor):
assert repr(found_req) == repr(req)
assert found_req.constraint is True

def test_nested_constraints_file(self, monkeypatch, tmpdir):
def test_nested_constraints_file(self, monkeypatch, tmpdir, session):
req_name = "hello"
req_file = tmpdir / "parent" / "req_file.txt"
req_file.parent.mkdir()
Expand Down