MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / test_learn_from_file

Method test_learn_from_file

tests/test_learning.py:246–250  ·  view source on GitHub ↗

Should learn preferences from file.

(self)

Source from the content-addressed store, hash-verified

244 reset_learning_manager()
245
246 def test_learn_from_file(self):
247 """Should learn preferences from file."""
248 lm = LearningManager()
249 result = lm.learn_from_file("test.py", "import pytest\ndef test_x(): pass")
250 assert result.get("test_framework") == "pytest"
251
252 def test_record_error_and_fix(self):
253 """Should record error and fix."""

Callers

nothing calls this directly

Calls 3

learn_from_fileMethod · 0.95
LearningManagerClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected