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

Method test_get_preference

tests/test_learning.py:289–296  ·  view source on GitHub ↗

Should get learned preference.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

learn_from_fileMethod · 0.95
get_preferenceMethod · 0.95
LearningManagerClass · 0.90

Tested by

no test coverage detected