File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 11"""Test pattern utilities."""
22
3- import pytest
4-
53from gitingest .utils .ignore_patterns import DEFAULT_IGNORE_PATTERNS
64from gitingest .utils .pattern_utils import _parse_patterns , process_patterns
75
@@ -32,19 +30,6 @@ def test_parse_patterns_valid() -> None:
3230 assert parsed_patterns == {"*.py" , "*.md" , "docs/*" }
3331
3432
35- def test_parse_patterns_invalid_characters () -> None :
36- """Test ``_parse_patterns`` with invalid characters.
37-
38- Given a pattern string containing special characters (e.g. "*.py;rm -rf"):
39- When ``_parse_patterns`` is called,
40- Then a ValueError should be raised indicating invalid pattern syntax.
41- """
42- patterns = "*.py;rm -rf"
43-
44- with pytest .raises (ValueError , match = "Pattern.*contains invalid characters" ):
45- _parse_patterns (patterns )
46-
47-
4833def test_process_patterns_include_and_ignore_overlap () -> None :
4934 """Test ``process_patterns`` with overlapping patterns.
5035
You can’t perform that action at this time.
0 commit comments