Should detect snake_case naming.
(self)
| 50 | assert result == "unittest" |
| 51 | |
| 52 | def test_detect_snake_case(self): |
| 53 | """Should detect snake_case naming.""" |
| 54 | content = """ |
| 55 | def my_function(): |
| 56 | pass |
| 57 | |
| 58 | def another_function(): |
| 59 | pass |
| 60 | """ |
| 61 | result = PreferenceDetector.detect_naming_convention(content) |
| 62 | assert result == "snake_case" |
| 63 | |
| 64 | def test_detect_all_preferences(self): |
| 65 | """Should detect multiple preferences at once.""" |
nothing calls this directly
no test coverage detected