summaryrefslogtreecommitdiff
path: root/tests/tox_env/python/test_python_api.py
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-02-12 00:21:44 +0000
committerGitHub <noreply@github.com>2021-02-12 00:21:44 +0000
commit15605d0696c8468f593b334264dab9fd698b0f50 (patch)
treee1175aa4eb31cf1b377e4005f17ac5fff5a31baf /tests/tox_env/python/test_python_api.py
parent2f1223fa4276d77b3240d4bb8c8d01d499c0dcfb (diff)
downloadtox-git-15605d0696c8468f593b334264dab9fd698b0f50.tar.gz
Do not make temp requirements file for deps (#1906)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Diffstat (limited to 'tests/tox_env/python/test_python_api.py')
-rw-r--r--tests/tox_env/python/test_python_api.py10
1 files changed, 2 insertions, 8 deletions
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: