Repository navigation
Commit 510e36c
Recompile components after modify_file to prevent test pollution
The integration test rendered CacheableComponent inside a modify_file
block, which compiles a render_template_for method with the modified
template source directly onto the component class. Restoring the file
via modify_file's ensure did not undo that method redefinition, so
subsequent tests that rendered CacheableComponent kept seeing the
temporarily-modified output ('changed').
Invalidating the CompileCache after modify_file restores the file forces
the next render to recompile from the restored source, isolating the
modification to the block that requested it.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent f8f987c commit 510e36c
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
| |||
0 commit comments