Skip to content

Commit 2ae2173

Browse files
committed
style: run black on files flagged by CI lint
Reformat 10 test files that failed black --check in CI.
1 parent d21823e commit 2ae2173

10 files changed

Lines changed: 12 additions & 31 deletions

simulator_tests/test_chat_simple_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
- Conversation context preservation across turns
1414
"""
1515

16-
1716
from .conversation_base_test import ConversationBaseTest
1817

1918

simulator_tests/test_conversation_chain_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
- Properly traverse parent relationships for history reconstruction
2222
"""
2323

24-
2524
from .conversation_base_test import ConversationBaseTest
2625

2726

simulator_tests/test_cross_tool_comprehensive.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
5. Proper tool chaining with context
1313
"""
1414

15-
1615
from .conversation_base_test import ConversationBaseTest
1716

1817

simulator_tests/test_ollama_custom_url.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- Model alias resolution for local models
1010
"""
1111

12-
1312
from .base_test import BaseSimulatorTest
1413

1514

simulator_tests/test_openrouter_fallback.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
- Auto mode correctly selects OpenRouter models
99
"""
1010

11-
1211
from .base_test import BaseSimulatorTest
1312

1413

simulator_tests/test_openrouter_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- Error handling when models are not available
1010
"""
1111

12-
1312
from .base_test import BaseSimulatorTest
1413

1514

simulator_tests/test_xai_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- API integration and response validation
1010
"""
1111

12-
1312
from .base_test import BaseSimulatorTest
1413

1514

tests/test_directory_expansion_tracking.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,23 @@ def temp_directory_with_files(self, project_path):
3737
files = []
3838
for i in range(5):
3939
swift_file = temp_path / f"File{i}.swift"
40-
swift_file.write_text(
41-
f"""
40+
swift_file.write_text(f"""
4241
import Foundation
4342
4443
class TestClass{i} {{
4544
func testMethod{i}() -> String {{
4645
return "test{i}"
4746
}}
4847
}}
49-
"""
50-
)
48+
""")
5149
files.append(str(swift_file))
5250

5351
# Create a Python file as well
5452
python_file = temp_path / "helper.py"
55-
python_file.write_text(
56-
"""
53+
python_file.write_text("""
5754
def helper_function():
5855
return "helper"
59-
"""
60-
)
56+
""")
6157
files.append(str(python_file))
6258

6359
try:

tests/test_docker_implementation.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,11 @@ def temp_project_dir():
310310

311311
# Create base files
312312
(temp_path / "server.py").write_text("# Mock server.py")
313-
(temp_path / "Dockerfile").write_text(
314-
"""
313+
(temp_path / "Dockerfile").write_text("""
315314
FROM python:3.11-slim
316315
COPY server.py /app/
317316
CMD ["python", "/app/server.py"]
318-
"""
319-
)
317+
""")
320318

321319
yield temp_path
322320

tests/test_prompt_regression.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,14 @@ async def test_chat_with_files(self):
8686

8787
# Create a temporary Python file for testing
8888
with tempfile.NamedTemporaryFile(mode="w", suffix=".py", delete=False) as f:
89-
f.write(
90-
"""
89+
f.write("""
9190
def hello_world():
9291
\"\"\"A simple hello world function.\"\"\"
9392
return "Hello, World!"
9493
9594
if __name__ == "__main__":
9695
print(hello_world())
97-
"""
98-
)
96+
""")
9997
temp_file = f.name
10098

10199
try:
@@ -155,8 +153,7 @@ async def test_codereview_normal_review(self):
155153

156154
# Create a temporary Python file for testing
157155
with tempfile.NamedTemporaryFile(mode="w", suffix=".py", delete=False) as f:
158-
f.write(
159-
"""
156+
f.write("""
160157
def process_user_input(user_input):
161158
# Potentially unsafe code for demonstration
162159
query = f"SELECT * FROM users WHERE name = '{user_input}'"
@@ -166,8 +163,7 @@ def main():
166163
user_name = input("Enter name: ")
167164
result = process_user_input(user_name)
168165
print(result)
169-
"""
170-
)
166+
""")
171167
temp_file = f.name
172168

173169
try:
@@ -241,8 +237,7 @@ async def test_analyze_normal_question(self):
241237

242238
# Create a temporary Python file demonstrating MVC pattern
243239
with tempfile.NamedTemporaryFile(mode="w", suffix=".py", delete=False) as f:
244-
f.write(
245-
"""
240+
f.write("""
246241
# Model
247242
class User:
248243
def __init__(self, name, email):
@@ -262,8 +257,7 @@ def __init__(self, model, view):
262257
263258
def get_user_display(self):
264259
return self.view.display_user(self.model)
265-
"""
266-
)
260+
""")
267261
temp_file = f.name
268262

269263
try:

0 commit comments

Comments
 (0)