Spaces:
Sleeping
Sleeping
Commit ·
bbf6d3a
1
Parent(s): 7337a40
chore: auto-sync update 2026-04-12 13:15:17
Browse files- final_check.py +3 -3
final_check.py
CHANGED
|
@@ -126,10 +126,10 @@ class FinalIntegrityCheck(unittest.TestCase):
|
|
| 126 |
mock_response.choices = [MagicMock()]
|
| 127 |
mock_response.choices[0].message.content = json.dumps({"reasoning": "test", "decisions": [1] * 200})
|
| 128 |
|
| 129 |
-
with patch("
|
| 130 |
f = io.StringIO()
|
| 131 |
with redirect_stdout(f):
|
| 132 |
-
inference.
|
| 133 |
|
| 134 |
output = f.getvalue()
|
| 135 |
lines = [l for l in output.strip().split("\n") if l.strip()]
|
|
@@ -164,4 +164,4 @@ class FinalIntegrityCheck(unittest.TestCase):
|
|
| 164 |
print("✓ Stdout format is compliant with hackathon regex rules.")
|
| 165 |
|
| 166 |
if __name__ == "__main__":
|
| 167 |
-
unittest.main(verbosity=1)
|
|
|
|
| 126 |
mock_response.choices = [MagicMock()]
|
| 127 |
mock_response.choices[0].message.content = json.dumps({"reasoning": "test", "decisions": [1] * 200})
|
| 128 |
|
| 129 |
+
with patch("inference._client.chat.completions.create", return_value=mock_response):
|
| 130 |
f = io.StringIO()
|
| 131 |
with redirect_stdout(f):
|
| 132 |
+
inference.run_inference()
|
| 133 |
|
| 134 |
output = f.getvalue()
|
| 135 |
lines = [l for l in output.strip().split("\n") if l.strip()]
|
|
|
|
| 164 |
print("✓ Stdout format is compliant with hackathon regex rules.")
|
| 165 |
|
| 166 |
if __name__ == "__main__":
|
| 167 |
+
unittest.main(verbosity=1)
|