Should learn preferences from a file.
(self)
| 81 | reset_preferences() |
| 82 | |
| 83 | def test_learn_from_file(self): |
| 84 | """Should learn preferences from a file.""" |
| 85 | pm = PreferenceManager() |
| 86 | content = "import pytest\ndef test_x(): pass" |
| 87 | result = pm.learn_from_file("test.py", content) |
| 88 | assert result.get("test_framework") == "pytest" |
| 89 | |
| 90 | def test_learn_from_multiple_files(self): |
| 91 | """Should aggregate preferences from multiple files.""" |
nothing calls this directly
no test coverage detected