mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
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:
parent
050dcb166d
commit
f59de5cff1
1 changed files with 0 additions and 0 deletions
0
tests/test_litellm/llms/a2a/__init__.py
Normal file
0
tests/test_litellm/llms/a2a/__init__.py
Normal file
Loading…
Add table
Reference in a new issue