fix(a2a): add missing test package __init__.py to avoid pytest module collision

tests/test_litellm/llms/a2a/chat/guardrail_translation/ and
tests/test_litellm/llms/openai/chat/guardrail_translation/ share the same
relative package path (chat/guardrail_translation), and neither a2a/ nor
openai/ had its own __init__.py. Pytest's default import mode resolved both
to the same ambiguous top-level chat package, so collecting both together
failed with ModuleNotFoundError: No module named
'chat.guardrail_translation.test_openai_guardrail_handler'.

Adding tests/test_litellm/llms/a2a/__init__.py gives the a2a test package a
fully qualified module path, removing the collision. Reproduced with a
two-directory pytest run before the fix and confirmed both suites collect
and pass together after it.
This commit is contained in:
STiFLeR7 2026-09-08 09:04:55 +05:30
parent 050dcb166d
commit f59de5cff1
No known key found for this signature in database

View file