Should suggest fix for known error.
(self)
| 170 | assert len(similar) > 0 |
| 171 | |
| 172 | def test_suggest_fix(self): |
| 173 | """Should suggest fix for known error.""" |
| 174 | db = ErrorDatabase() |
| 175 | db.learn_from_error("ModuleNotFoundError", "No module named 'flask'", "pip install flask", True) |
| 176 | |
| 177 | suggestion = db.suggest_fix("ModuleNotFoundError", "No module named 'flask'") |
| 178 | assert suggestion == "pip install flask" |
| 179 | |
| 180 | def test_statistics(self): |
| 181 | """Should return error statistics.""" |
nothing calls this directly
no test coverage detected