mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 13:25:00 +00:00
style: Apply linter formatting to test_models.py
This commit is contained in:
parent
a799851832
commit
1e8fc97ba4
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,7 @@ class TestModels(unittest.TestCase):
|
||||||
# Write to a regular file instead of NamedTemporaryFile for better cross-platform compatibility
|
# Write to a regular file instead of NamedTemporaryFile for better cross-platform compatibility
|
||||||
tmp = tempfile.mktemp(suffix=".yml")
|
tmp = tempfile.mktemp(suffix=".yml")
|
||||||
try:
|
try:
|
||||||
with open(tmp, 'w') as f:
|
with open(tmp, "w") as f:
|
||||||
yaml.dump(test_settings, f)
|
yaml.dump(test_settings, f)
|
||||||
|
|
||||||
# Register the test settings
|
# Register the test settings
|
||||||
|
@ -136,6 +136,7 @@ class TestModels(unittest.TestCase):
|
||||||
finally:
|
finally:
|
||||||
# Clean up the temporary file
|
# Clean up the temporary file
|
||||||
import os
|
import os
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.unlink(tmp)
|
os.unlink(tmp)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue