From aa3fe9a3f92b09a644fea258fa5152b44aabe98e Mon Sep 17 00:00:00 2001 From: Benjamin Callonnec Date: Fri, 9 Feb 2024 15:09:41 +0000 Subject: [PATCH] remove dist dir and change to simple_project fixture --- tests/console/commands/test_publish.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/console/commands/test_publish.py b/tests/console/commands/test_publish.py index 8bb185d6c39..8d83f9508a0 100644 --- a/tests/console/commands/test_publish.py +++ b/tests/console/commands/test_publish.py @@ -184,9 +184,12 @@ def test_publish_dist_dir_and_build_options( command_tester_factory: CommandTesterFactory, dist_dir: str | None, ) -> None: - source_dir = fixture_dir("with_multiple_dist_dir") + source_dir = fixture_dir("simple_project") target_dir = tmp_path / "project" shutil.copytree(str(source_dir), str(target_dir)) + + # Remove dist dir because as it will be built again + shutil.rmtree(target_dir / "dist") http.register_uri( http.POST, "https://upload.pypi.org/legacy/", status=409, body="Conflict"