From 15605d0696c8468f593b334264dab9fd698b0f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 12 Feb 2021 00:21:44 +0000 Subject: Do not make temp requirements file for deps (#1906) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- tests/tox_env/python/test_python_api.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests/tox_env/python/test_python_api.py') diff --git a/tests/tox_env/python/test_python_api.py b/tests/tox_env/python/test_python_api.py index 88a9d4c4..66ccf2bb 100644 --- a/tests/tox_env/python/test_python_api.py +++ b/tests/tox_env/python/test_python_api.py @@ -49,18 +49,12 @@ def test_requirements_txt(tox_project: ToxProjectCreator) -> None: execute_calls = prj.patch_execute(lambda r: 0 if "install" in r.run_id else None) result = prj.run("r", "-e", "py") result.assert_success() - tox_env = result.state.tox_env("py") assert execute_calls.call_count == 1 - exp = ["python", "-I", "-m", "pip", "install", "-r"] + exp = ["python", "-I", "-m", "pip", "install", "nose"] got_cmd = execute_calls.call_args[0][3].cmd - assert got_cmd[:-1] == exp - - req = Path(got_cmd[-1]) - assert req.parent == tox_env.core["tox_root"] - assert req.name.startswith("requirements-") - assert req.name.endswith(".txt") + assert got_cmd == exp def test_conflicting_base_python() -> None: -- cgit v1.2.1