{
  "scope": "Git / Ruff / pytest · 一次性工作区",
  "input": "def fee(amount):\n    return 0 if amount > 100 else 5\n",
  "result": [
    {
      "command": "python -m ruff check amount.py",
      "exit": 0,
      "output": "All checks passed!"
    },
    {
      "command": "python -m pytest -q",
      "exit": 1,
      "output": ".F.                                                                      [100%]\n=================================== FAILURES ===================================\n_______________________________ test_fee[100-0] ________________________________\n\namount = 100, expected = 0\n\n    @pytest.mark.parametrize((\"amount\", \"expected\"), [(99, 5), (100, 0), (101, 0)])\n    def test_fee(amount, expected):\n>       assert fee(amount) == expected\nE       assert 5 == 0\nE        +  where 5 = fee(100)\n\ntest_amount.py:6: AssertionError\n=========================== short test summary info ============================\nFAILED test_amount.py::test_fee[100-0] - assert 5 == 0\n1 failed, 2 passed in 0.01s"
    },
    {
      "command": "python -m pytest -q",
      "exit": 0,
      "output": "...                                                                      [100%]\n3 passed in 0.00s"
    }
  ],
  "checks": {
    "修复前断言失败": true,
    "修复后3个断言通过": true,
    "原版 lint 已通过": true
  }
}
