Skip to content

Commit

Permalink
fix: a test that requires setuptools to be installed
Browse files Browse the repository at this point in the history
Fix #3324

Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Dec 2, 2024
1 parent d5874cd commit a5e3c17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ def test_export_replace_project_root(project):
assert "${PROJECT_ROOT}" not in result


def test_convert_setup_py_project(project):
@pytest.mark.usefixtures("local_finder")
def test_convert_setup_py_project(project, pdm):
golden_file = FIXTURES / "projects/test-setuptools/setup.py"
pdm(["add", "setuptools"], obj=project)
assert setup_py.check_fingerprint(project, golden_file)
result, settings = setup_py.convert(project, golden_file, ns())
assert result == {
Expand Down

0 comments on commit a5e3c17

Please sign in to comment.