Skip to content

Commit 948d020

Browse files
Copilotshenxianpeng
andcommitted
Remove unused script and tests, update release template title
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
1 parent 9f9be32 commit 948d020

File tree

3 files changed

+1
-53
lines changed

3 files changed

+1
-53
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _extends: .github
55
template: |
66
<!-- Optional: add a release summary here -->
77
8-
## Default Tool Versions
8+
## Default Clang Tools Versions
99
1010
This release uses the following default versions:
1111
- **clang-format**: `$CLANG_FORMAT_VERSION`

scripts/get_default_versions.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/test_util.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -262,35 +262,6 @@ def test_version_lists_not_empty():
262262
assert all(isinstance(v, str) for v in CLANG_TIDY_VERSIONS)
263263

264264

265-
@pytest.mark.benchmark
266-
def test_get_default_versions_script():
267-
"""Test that the get_default_versions script works correctly."""
268-
import subprocess
269-
import sys
270-
from pathlib import Path
271-
272-
script_path = Path(__file__).parent.parent / "scripts" / "get_default_versions.py"
273-
assert script_path.exists(), "get_default_versions.py script should exist"
274-
275-
result = subprocess.run(
276-
[sys.executable, str(script_path)],
277-
capture_output=True,
278-
text=True
279-
)
280-
281-
assert result.returncode == 0, f"Script failed with: {result.stderr}"
282-
output_lines = result.stdout.strip().split('\n')
283-
284-
# Should have 4 lines of output
285-
assert len(output_lines) >= 4
286-
287-
# Check that it contains expected format
288-
assert any(line.startswith("Default clang-format version:") for line in output_lines)
289-
assert any(line.startswith("Default clang-tidy version:") for line in output_lines)
290-
assert any(line.startswith("CLANG_FORMAT_VERSION=") for line in output_lines)
291-
assert any(line.startswith("CLANG_TIDY_VERSION=") for line in output_lines)
292-
293-
294265
@pytest.mark.benchmark
295266
def test_resolve_install_with_none_default_version():
296267
"""Test _resolve_install when DEFAULT versions are None."""

0 commit comments

Comments
 (0)