MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / _categorize_test

Method _categorize_test

testing/test_analyzer.py:367–376  ·  view source on GitHub ↗

Categorize test based on its name and path.

(self, test_name: str)

Source from the content-addressed store, hash-verified

365 return sorted(issues, key=lambda x: x.duration, reverse=True)
366
367 def _categorize_test(self, test_name: str) -> str:
368 """Categorize test based on its name and path."""
369 if "gui" in test_name.lower():
370 return "gui"
371 elif "headless" in test_name.lower():
372 return "headless"
373 elif "integration" in test_name.lower():
374 return "integration"
375 else:
376 return "unit"
377
378 def _identify_bottleneck_type(self, test_name: str, duration: float) -> str:
379 """Identify the likely bottleneck type based on test characteristics."""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected