mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
refactor: Extract loop logic into helper method in test_repomap.py
This commit is contained in:
parent
22f1703bee
commit
570e8eae31
1 changed files with 3 additions and 1 deletions
|
@ -317,12 +317,14 @@ class TestRepoMapAllLanguages(unittest.TestCase):
|
|||
"racket": ("rkt", "greet"),
|
||||
"solidity": ("sol", "SimpleStorage"),
|
||||
"swift": ("swift", "Greeter"),
|
||||
"udev": ("rules", "SUBSYSTEM"),
|
||||
"udev": ("rules", "USB_DRIVER"),
|
||||
}
|
||||
|
||||
fixtures_dir = Path(__file__).parent.parent / "fixtures" / "languages"
|
||||
|
||||
for lang, key_symbol in language_files.items():
|
||||
# make the inside of this loop into a helper method ai!
|
||||
|
||||
# Get the fixture file path and name based on language
|
||||
fixture_dir = fixtures_dir / lang
|
||||
ext, key_symbol = language_files[lang]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue