From a67dc933fd13bf52ac967d02dd69a47d2137862f Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 19 Jun 2023 19:36:56 +0100 Subject: [PATCH] Fix affected tests --- .../python/virtual_env/package/test_package_cmd_builder.py | 2 ++ .../python/virtual_env/package/test_package_pyproject.py | 3 ++- tests/tox_env/test_tox_env_runner.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py b/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py index 8e20fbdb7..5052c6a6b 100644 --- a/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py +++ b/tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py @@ -56,6 +56,8 @@ def test_tox_install_pkg_sdist(tox_project: ToxProjectCreator, pkg_with_extras_p (".pkg_external_sdist_meta", "install_requires", ["setuptools", "wheel"]), (".pkg_external_sdist_meta", "_optional_hooks", []), (".pkg_external_sdist_meta", "get_requires_for_build_sdist", []), + (".pkg_external_sdist_meta", "get_requires_for_build_wheel", []), # required before prepare_metadata* + (".pkg_external_sdist_meta", "install_requires_for_build_wheel", ["wheel"]), (".pkg_external_sdist_meta", "prepare_metadata_for_build_wheel", []), ("py", "install_package_deps", deps), ("py", "install_package", ["--force-reinstall", "--no-deps", str(pkg_with_extras_project_sdist)]), diff --git a/tests/tox_env/python/virtual_env/package/test_package_pyproject.py b/tests/tox_env/python/virtual_env/package/test_package_pyproject.py index 9ccacf24b..4e3b44559 100644 --- a/tests/tox_env/python/virtual_env/package/test_package_pyproject.py +++ b/tests/tox_env/python/virtual_env/package/test_package_pyproject.py @@ -213,6 +213,7 @@ def test_pyproject_deps_static_with_dynamic( # noqa: PLR0913 expected_calls = [ (".pkg", "_optional_hooks"), (".pkg", "get_requires_for_build_sdist"), + (".pkg", "get_requires_for_build_wheel"), (".pkg", "build_wheel"), (".pkg", "build_sdist"), ("py", "install_package_deps"), @@ -239,10 +240,10 @@ def test_pyproject_no_build_editable_fallback(tox_project: ToxProjectCreator, de expected_calls = [ (".pkg", "_optional_hooks"), + (".pkg", "get_requires_for_build_wheel"), (".pkg", "build_wheel"), (".pkg", "get_requires_for_build_sdist"), ("a", "install_package"), - (".pkg", "get_requires_for_build_sdist"), ("b", "install_package"), (".pkg", "_exit"), ] diff --git a/tests/tox_env/test_tox_env_runner.py b/tests/tox_env/test_tox_env_runner.py index a3b805227..0e39e5493 100644 --- a/tests/tox_env/test_tox_env_runner.py +++ b/tests/tox_env/test_tox_env_runner.py @@ -24,6 +24,7 @@ def test_package_only( expected_calls = [ (".pkg", "_optional_hooks"), (".pkg", "get_requires_for_build_sdist"), + (".pkg", "get_requires_for_build_wheel"), (".pkg", "build_wheel"), (".pkg", "build_sdist"), (".pkg", "_exit"),