Should detect unittest from test file.
(self)
| 38 | assert result == "pytest" |
| 39 | |
| 40 | def test_detect_unittest(self): |
| 41 | """Should detect unittest from test file.""" |
| 42 | content = """ |
| 43 | import unittest |
| 44 | |
| 45 | class 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.""" |
nothing calls this directly
no test coverage detected