Should return error statistics.
(self)
| 178 | assert suggestion == "pip install flask" |
| 179 | |
| 180 | def test_statistics(self): |
| 181 | """Should return error statistics.""" |
| 182 | db = ErrorDatabase() |
| 183 | db.learn_from_error("ValueError", "invalid literal", "fix input", True) |
| 184 | db.learn_from_error("TypeError", "wrong type", "fix type", False) |
| 185 | |
| 186 | stats = db.get_statistics() |
| 187 | assert "total_patterns" in stats |
| 188 | assert "success_rate" in stats |
| 189 | |
| 190 | |
| 191 | class TestStrategyTracker: |
nothing calls this directly
no test coverage detected