Commit graph

12 commits

Author SHA1 Message Date
Kevin Turcios
19bd6e4bad test: sync test files from main (safe, main-only changes)
34 test files updated with main's refactored tests for new language
support protocol, JS/TS improvements, and code context extraction.
2026-03-02 15:25:50 -05:00
Kevin Turcios
547c02e8bc refactor: move context extraction modules to languages/python/context/
Move code_context_extractor.py and unused_definition_remover.py from
codeflash/context/ to codeflash/languages/python/context/ and update
all import sites.
2026-02-16 14:49:04 -05:00
misrasaurabh1
198487bf81 format and lint all 2026-01-29 01:39:48 -08:00
Kevin Turcios
7b33e8b7f6 refactor: smarter placement of global assignments based on dependencies
Assignments that don't reference module-level definitions are now placed
right after imports. Only assignments that reference classes/functions
are placed after those definitions to prevent NameError.
2026-01-24 06:29:39 -05:00
Kevin Turcios
257c5f2b8f test: update test expectations for global assignment placement changes
Update test_no_targets_found to expect outer class to be kept when
targeting nested class methods, and add test for nonexistent targets.
Update test_multi_file_replcement01 to expect global assignments at
module end rather than after imports.
2026-01-24 06:19:48 -05:00
Alvin Ryanputra
17a42a218c Implemented testgen context retrieval. Context retrieved is the union of read-writable code and read-only code. Did some refactors to remove code_to_optimize_with_helpers, and updated tests. 2025-03-05 16:40:23 -08:00
Alvin Ryanputra
8de9cebe90 draft PR for init caching. no instrumentation checks implemented yet 2025-01-13 17:01:52 -08:00
Alvin Ryanputra
e10f13a83a added docstring removal 2024-12-26 14:06:05 -08:00
Alvin Ryanputra
693c150262 some refactoring 2024-12-23 12:27:31 -08:00
Alvin Ryanputra
ff3ee74fa6 slight changes, more tests 2024-12-18 10:56:27 -08:00
Alvin Ryanputra
d430d02166 left with mypy for tests 2024-12-18 10:31:47 -08:00
Alvin Ryanputra
14a51d5f1b changed the approach to manipulate the csts directly. still have some mypy errors, will push changes to fix them soon. 2024-12-17 18:27:59 -08:00
Renamed from tests/test_create_rw_context.py (Browse further)