mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
The previous approach using importlib.reload() on the canonical module caused test interference - the reloaded classes were different objects from the ones imported by other tests, breaking event bus registration. This fix uses importlib.util to load an isolated copy of the module under a different name, avoiding pollution of the canonical module. Co-Authored-By: João <joao@crewai.com>
5.6 KiB
5.6 KiB