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

Method test_detect_unittest

tests/test_learning.py:40–50  ·  view source on GitHub ↗

Should detect unittest from test file.

(self)

Source from the content-addressed store, hash-verified

38 assert result == "pytest"
39
40 def test_detect_unittest(self):
41 """Should detect unittest from test file."""
42 content = """
43import unittest
44
45class TestLogin(unittest.TestCase):
46 def test_login(self):
47 self.assertEqual(1, 1)
48"""
49 result = PreferenceDetector.detect_test_framework(content)
50 assert result == "unittest"
51
52 def test_detect_snake_case(self):
53 """Should detect snake_case naming."""

Callers

nothing calls this directly

Calls 1

detect_test_frameworkMethod · 0.80

Tested by

no test coverage detected