codeflash-internal/django
Kevin Turcios 86f68b6ac7 fix: add postprocessing to fix missing imports in generated tests
When the LLM generates test code, it sometimes redefines classes locally
(like Element, ChunkingOptions) but forgets to import or define others
(like PreChunk), causing NameError at runtime.

This adds a postprocessing step that:
1. Detects undefined names in the generated test code
2. Checks if those names are defined in the source module
3. Adds the missing imports automatically

This is more reliable than relying on prompt instructions which the LLM
sometimes ignores.
2026-01-07 14:12:04 -05:00
..
aiservice fix: add postprocessing to fix missing imports in generated tests 2026-01-07 14:12:04 -05:00
.dockerignore local setup (#1898) 2025-11-17 12:35:09 -08:00