AppFor rankings: Eight AI models fixing a failing Python unit test (November 2026) We gave eight AI models the same 20 short Python modules. Each module had one bug and a unit test that failed because of it. Every model received the module, a description of what it should do and the failing test in an identical prompt through the OpenRouter API, and had to return the corrected module. A reply passed only if its code made both the visible test and a hidden suite of 9 to 12 further tests pass, run in an isolated Python 3.12 container without network access. Each model answered every task twice, so the score is the share of 40 runs that passed. Places are awarded only when the scores separate the models; this month seven models passed all 40 runs, so this edition has no places. The best-value Pick goes to the lowest cost per passed run among the models within five points of the top score. Results are listed by score, then by total cost. We used temperature 0 where the model accepts it, otherwise the provider default, the default reasoning settings and at most 8,000 output tokens including reasoning. The tasks were written for this test and published only after it. This edition tests the models through their API, not the chat apps built on them, and covers mid-priced and budget models; the most expensive flagship models were not included. Each result links to every reply, the extracted code, the test outcome, tokens, cost and response time. Settings - Date of the run: 2026-11-24 (UTC). Each model answered each of the 20 tasks once per round, 2 rounds. - API: OpenRouter chat completions, one user message after a short system message, no tools; default reasoning settings. - Temperature 0 where the model accepts the parameter, otherwise the provider default; at most 8,000 output tokens including reasoning. - A reply passes when the code in its first Python code block (or the whole reply) makes test_visible.py and test_hidden.py pass in a Python 3.12 container without network access (read-only, 256 MB, half a CPU, 20 s). - Score = passed runs / all runs. Places only when the scores separate the models (none this month: seven models passed every run). Prompt (identical for every model) - system: You are a careful senior Python developer. - user: The module below has a bug. Fix it so that the failing test passes and the module meets its description. Change as little as possible. / Description: / solution.py: / Failing test (test_visible.py): / Reply with the complete corrected solution.py in a single ```python code block and nothing else. Results - Claude Haiku 5.5 (anthropic/claude-haiku-5.5): 40/40 runs passed (100.0%), cost $0.0168, median response 2.6 s, AppFor Pick: Best value - DeepSeek V4.1 Flash (deepseek/deepseek-v4.1-flash): 40/40 runs passed (100.0%), cost $0.0196, median response 3.61 s - Qwen4-Max (qwen/qwen4-max): 40/40 runs passed (100.0%), cost $0.0773, median response 4.09 s - GPT-6.1 Terra (openai/gpt-6.1-terra): 40/40 runs passed (100.0%), cost $0.1071, median response 5.12 s - GLM 5.3 (z-ai/glm-5.3): 40/40 runs passed (100.0%), cost $0.1226, median response 3.52 s - GPT-6.2 Sol (openai/gpt-6.2-sol): 40/40 runs passed (100.0%), cost $0.1829, median response 4.91 s - Gemini 4 Hydrogen (google/gemini-4-hydrogen): 40/40 runs passed (100.0%), cost $0.3389, median response 6.48 s - Hy4 (tencent/hy4): 11/40 runs passed (27.5%), cost $0.6480, median response 72.36 s Files - https://appfor.ai/rankings-evidence/2026-11-coding-models/tasks.json: the 20 tasks with descriptions, buggy modules, visible and hidden tests and reference fixes. - https://appfor.ai/rankings-evidence/2026-11-coding-models/.json: every counted run with the reply, the extracted code, the test result, tokens, cost and response time.