Clean up tests

This commit is contained in:
Brandon Hancock
2025-03-14 10:09:21 -04:00
parent 4b6498de8b
commit c334feea7e
5 changed files with 53 additions and 81 deletions

View File

@@ -865,11 +865,17 @@ def test_crew_verbose_output(capsys):
crew._logger = Logger(verbose=False)
crew.kickoff()
captured = capsys.readouterr()
# Filter out event listener logs, escape codes, and now also 'tools:' lines
filtered_output = "\n".join(
line
for line in captured.out.split("\n")
if not line.startswith("[") and line.strip() and not line.startswith("\x1b")
if not line.startswith("[")
and line.strip()
and not line.startswith("\x1b")
and not "tools:" in line.lower() # Exclude 'tools:' lines
)
assert filtered_output == ""