Should get learned preference.
(self)
| 287 | assert suggestion == "add try/except" |
| 288 | |
| 289 | def test_get_preference(self): |
| 290 | """Should get learned preference.""" |
| 291 | lm = LearningManager() |
| 292 | for _ in range(5): |
| 293 | lm.learn_from_file("test.py", "import pytest\ndef test_x(): pass") |
| 294 | |
| 295 | pref = lm.get_preference("test_framework") |
| 296 | assert pref == "pytest" |
| 297 | |
| 298 | def test_get_status(self): |
| 299 | """Should return complete status.""" |
nothing calls this directly
no test coverage detected