Test ``process_patterns`` with empty patterns. Given empty ``include_patterns`` and ``exclude_patterns``: When ``process_patterns`` is called, Then ``include_patterns`` becomes ``None`` and ``DEFAULT_IGNORE_PATTERNS`` apply.
()
| 5 | |
| 6 | |
| 7 | def test_process_patterns_empty_patterns() -> None: |
| 8 | """Test ``process_patterns`` with empty patterns. |
| 9 | |
| 10 | Given empty ``include_patterns`` and ``exclude_patterns``: |
| 11 | When ``process_patterns`` is called, |
| 12 | Then ``include_patterns`` becomes ``None`` and ``DEFAULT_IGNORE_PATTERNS`` apply. |
| 13 | """ |
| 14 | exclude_patterns, include_patterns = process_patterns(exclude_patterns="", include_patterns="") |
| 15 | |
| 16 | assert include_patterns is None |
| 17 | assert exclude_patterns == DEFAULT_IGNORE_PATTERNS |
| 18 | |
| 19 | |
| 20 | def test_parse_patterns_valid() -> None: |
nothing calls this directly
no test coverage detected