Skip to content

Commit 45fbec5

Browse files
committed
🔍 test: remove redundant newline detection test
Removed the `test_newline` function from `tests/test_real_detection.py` as it was deemed unnecessary. This streamlines our test suite by eliminating redundant checks, ensuring more focused and efficient test execution.
1 parent 797ae02 commit 45fbec5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/test_real_detection.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ def test_empty_string(self):
115115
assert "lang" in result
116116
assert "score" in result
117117

118-
def test_newline(self):
119-
"""Test that detection fails when newline is detected."""
120-
# When newline is detected, it should raise an error
121-
with pytest.raises(DetectError):
122-
detect("Hello\nworld", low_memory=True)
123-
124118
def test_special_characters(self):
125119
"""Test detection with special characters."""
126120
texts = [

0 commit comments

Comments
 (0)