From 1dcb8aa201b5f4960669f9b1740dda5abba0f69a Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 10 Jan 2025 21:04:41 +0100 Subject: [PATCH] Move test_package away from on-disc test fixtures The tests in this module do not care about the content of the wheel. --- tests/test_package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_package.py b/tests/test_package.py index d843fa17..4d35b186 100644 --- a/tests/test_package.py +++ b/tests/test_package.py @@ -116,8 +116,8 @@ def test_package_signed_name_is_correct(): assert package.signed_filename == (filename + ".asc") -def test_package_add_attestations(tmp_path): - package = package_file.PackageFile.from_filename(helpers.WHEEL_FIXTURE, None) +def test_package_add_attestations(tmp_path, test_wheel): + package = package_file.PackageFile.from_filename(str(test_wheel), None) assert package.attestations is None