Skip to content

Commit d7d4b55

Browse files
committed
Update build-system requirements in tests to include python-package-folder
This commit modifies the assertions in the test cases to ensure that the build-system section of the pyproject.toml file includes 'python-package-folder' alongside 'hatchling'. This change aligns the tests with the recent enhancements made to the build configuration.
1 parent 9fdb8a7 commit d7d4b55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_subfolder_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def test_temporary_pyproject_has_correct_structure(
661661

662662
# Verify build-system section is added (required for hatchling)
663663
assert "[build-system]" in content
664-
assert 'requires = ["hatchling"]' in content
664+
assert 'requires = ["hatchling", "python-package-folder"]' in content
665665
assert 'build-backend = "hatchling.build"' in content
666666
assert "[tool.hatch.version]" not in content
667667
assert "[tool.uv-dynamic-versioning]" not in content
@@ -894,7 +894,7 @@ def test_build_system_section_replaces_setuptools(
894894

895895
# Verify build-system section uses hatchling, not setuptools
896896
assert "[build-system]" in content
897-
assert 'requires = ["hatchling"]' in content
897+
assert 'requires = ["hatchling", "python-package-folder"]' in content
898898
assert 'build-backend = "hatchling.build"' in content
899899
assert "setuptools" not in content or 'build-backend = "setuptools' not in content
900900

@@ -929,7 +929,7 @@ def test_build_system_section_with_subfolder_pyproject(
929929

930930
# Verify build-system section is added
931931
assert "[build-system]" in content
932-
assert 'requires = ["hatchling"]' in content
932+
assert 'requires = ["hatchling", "python-package-folder"]' in content
933933
assert 'build-backend = "hatchling.build"' in content
934934

935935
config.restore()

0 commit comments

Comments
 (0)