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

Method test_learn_from_file

tests/test_learning.py:83–88  ·  view source on GitHub ↗

Should learn preferences from a file.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 3

learn_from_fileMethod · 0.95
PreferenceManagerClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected