Skip to content

Commit 8dc6d9e

Browse files
github-actions[bot]Kevin Turciosclaude
committed
fix: remove test for deleted create_pyproject_toml function
The function was removed in the dead code cleanup but the test file still imported it and had a TestCreatePyprojectToml class, causing ImportError. Co-authored-by: Kevin Turcios <undefined@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d1a128d commit 8dc6d9e

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

tests/test_setup/test_config.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from codeflash.setup.config_writer import (
99
_write_package_json,
1010
_write_pyproject_toml,
11-
create_pyproject_toml,
1211
remove_config,
1312
write_config,
1413
)
@@ -339,26 +338,3 @@ def test_removes_from_package_json(self, tmp_path):
339338
data = json.load(f)
340339
assert data["name"] == "test" # Preserved
341340
assert "codeflash" not in data
342-
343-
344-
class TestCreatePyprojectToml:
345-
"""Tests for create_pyproject_toml function."""
346-
347-
def test_creates_minimal_pyproject(self, tmp_path):
348-
"""Should create minimal pyproject.toml."""
349-
success, message = create_pyproject_toml(tmp_path)
350-
351-
assert success is True
352-
assert (tmp_path / "pyproject.toml").exists()
353-
354-
content = (tmp_path / "pyproject.toml").read_text()
355-
assert "codeflash" in content.lower()
356-
357-
def test_fails_if_already_exists(self, tmp_path):
358-
"""Should fail if pyproject.toml already exists."""
359-
(tmp_path / "pyproject.toml").write_text('[project]\nname = "test"')
360-
361-
success, message = create_pyproject_toml(tmp_path)
362-
363-
assert success is False
364-
assert message == f"pyproject.toml already exists at {tmp_path / 'pyproject.toml'}"

0 commit comments

Comments
 (0)