From c768afd1a19e4a0495ef9d987fe62fc8c909fe8e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 14 Mar 2026 05:31:49 +0000 Subject: [PATCH] fix: correct tautological assertion in compact separators test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- lib/crewai/tests/a2a/utils/test_agent_card_signing.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/crewai/tests/a2a/utils/test_agent_card_signing.py b/lib/crewai/tests/a2a/utils/test_agent_card_signing.py index 60ba3e518..47c60182f 100644 --- a/lib/crewai/tests/a2a/utils/test_agent_card_signing.py +++ b/lib/crewai/tests/a2a/utils/test_agent_card_signing.py @@ -150,10 +150,8 @@ class TestSerializeAgentCard: def test_compact_separators(self, sample_agent_card: AgentCard) -> None: """Output should use compact separators (no spaces after : or ,).""" result = _serialize_agent_card(sample_agent_card) - # Compact JSON should not have ": " or ", " patterns at the top level - assert ": " not in result or result.count(": ") == 0 - # More specifically, there should be no space after colon - # (json.dumps with separators=(",",":") ensures this) + assert ": " not in result + assert ", " not in result # ---------------------------------------------------------------------------