Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(statusline): detect Python test_*.py / spec_*.py files (#1463) (#1821)

rUv6268605f26ed
diff --git a/.claude/helpers/statusline.cjs b/.claude/helpers/statusline.cjs
index 81f6cfc4c3..7ae6e47dac 100644
--- a/.claude/helpers/statusline.cjs
+++ b/.claude/helpers/statusline.cjs
@@ -533,7 +533,17 @@ function getTestStats() {
countTestFiles(path.join(dir, entry.name), depth + 1);
} else if (entry.isFile()) {
const n = entry.name;
- if (n.includes('.test.') || n.includes('.spec.') || n.includes('_test.') || n.includes('_spec.')) {
+ // #1463 — also detect Python pytest's `test_*.py` convention
+ // (and the rarer `*_test.py` / `*_test.py` already covered by
+ // _test. above; spec_*.py mirrors test_*.py for unittest naming).
+ if (
+ n.includes('.test.') ||
+ n.includes('.spec.') ||
+ n.includes('_test.') ||
+ n.includes('_spec.') ||
+ n.startsWith('test_') ||
+ n.startsWith('spec_')
+ ) {
testFiles++;
}
}