File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import tempfile
22from pathlib import Path
33
4+ import pytest
45import yaml
6+
7+ pytest .importorskip ("hypothesis" )
8+
59from hypothesis import given , settings
610from hypothesis import strategies as st
711
1620 max_size = 30 ,
1721)
1822
23+ pattern_text = st .text (min_size = 0 , max_size = 50 ).filter (lambda x : "\n " not in x and "\r " not in x )
24+
1925
2026@given (st .text (max_size = 5000 ))
2127@settings (max_examples = 100 )
@@ -45,9 +51,6 @@ def test_text_file_not_detected_as_binary(data):
4551 assert _is_binary_file (f ) is False
4652
4753
48- pattern_text = st .text (min_size = 0 , max_size = 50 ).filter (lambda x : "\n " not in x and "\r " not in x )
49-
50-
5154@given (st .lists (pattern_text , min_size = 0 , max_size = 20 ))
5255@settings (max_examples = 100 )
5356def test_ignore_patterns_roundtrip (patterns ):
You can’t perform that action at this time.
0 commit comments