Skip to content

Commit da536db

Browse files
committed
Clean up Java test skip markers
- Remove dead `import shutil` from test_comparator.py - Rename `requires_java` → `requires_java_runtime` for consistency with test_run_and_parse.py - Remove redundant `@requires_java_runtime` on test_behavior_return_value_correctness (class already has it)
1 parent e73492f commit da536db

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

tests/test_languages/test_java/test_comparator.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for Java test result comparison."""
22

3-
import shutil
43
import sqlite3
54
from pathlib import Path
65

@@ -15,7 +14,7 @@
1514
from codeflash.models.models import TestDiffScope
1615

1716
# Skip tests that require the codeflash-runtime JAR (built by Maven from codeflash-java-runtime/)
18-
requires_java = pytest.mark.skipif(
17+
requires_java_runtime = pytest.mark.skipif(
1918
_find_comparator_jar() is None,
2019
reason="codeflash-runtime JAR not found - skipping Comparator integration tests",
2120
)
@@ -451,7 +450,7 @@ def test_deeply_nested_objects(self):
451450
assert equivalent is True
452451

453452

454-
@requires_java
453+
@requires_java_runtime
455454
class TestTestResultsTableSchema:
456455
"""Tests for Java Comparator reading from test_results table schema.
457456
@@ -926,7 +925,7 @@ def test_compare_different_error_types(self):
926925
assert diffs[0].scope == TestDiffScope.DID_PASS
927926

928927

929-
@requires_java
928+
@requires_java_runtime
930929
class TestComparatorJavaEdgeCases(TestTestResultsTableSchema):
931930
"""Tests for Java Comparator edge cases that require Java runtime.
932931

tests/test_languages/test_java/test_run_and_parse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ def test_behavior_multiple_test_methods(self, java_project):
377377
assert "testAddPositive" in test_names
378378
assert "testAddZero" in test_names
379379

380-
@requires_java_runtime
381380
def test_behavior_return_value_correctness(self, tmp_path):
382381
"""Verify the Comparator JAR correctly identifies equivalent vs. differing results.
383382

0 commit comments

Comments
 (0)