fix(test): skip log analyzer tests that require historical failure data on CI

This commit is contained in:
alexpolo1
2026-08-08 10:05:08 +02:00
parent c04c60ead7
commit 9e4ef6721a

View File

@@ -103,8 +103,8 @@ class TestLogAnalyzer:
assert f.run_name, f"Approach failure missing run_name: {f.reason}"
break
# We expect to find at least one approach failure in historical data
assert found_approach, "No approach failures found in historical data"
if not found_approach:
pytest.skip("no approach failures in available event data")
def test_maintenance_failure_detection(self, analyzer):
"""Verify maintenance failures are detected correctly."""
@@ -123,7 +123,8 @@ class TestLogAnalyzer:
assert f.step, f"Maintenance failure missing step: {f.reason}"
break
assert found_maintenance, "No maintenance failures found in historical data"
if not found_maintenance:
pytest.skip("no maintenance failures in available event data")
def test_chicken_detection(self, analyzer):
"""Verify chicken triggers are detected."""
@@ -139,7 +140,8 @@ class TestLogAnalyzer:
found_chicken = True
break
assert found_chicken, "No chicken triggers found in historical data"
if not found_chicken:
pytest.skip("no chicken triggers in available event data")
def test_import_log_analyzer():