File tree Expand file tree Collapse file tree 1 file changed +7
-29
lines changed Expand file tree Collapse file tree 1 file changed +7
-29
lines changed Original file line number Diff line number Diff line change 2
2
import sys
3
3
from textwrap import dedent
4
4
5
- import hypothesis .strategies as st
6
5
import pytest
7
- from hypothesis import settings
8
6
9
7
10
8
def test_simple_run (tmpdir , runner ):
@@ -299,42 +297,22 @@ def get_cfg():
299
297
}
300
298
301
299
302
- collections_strategy = st .sets (
303
- st .text (
304
- st .characters (
305
- blacklist_characters = set ("./\x00 " ), # Invalid chars on POSIX filesystems
306
- # Surrogates can't be encoded to utf-8 in Python
307
- blacklist_categories = {"Cs" },
308
- ),
309
- min_size = 1 ,
310
- max_size = 50 ,
311
- ),
312
- min_size = 1 ,
313
- )
314
-
315
-
316
300
# XXX: https://github.com/pimutils/vdirsyncer/issues/617
317
301
@pytest .mark .skipif (sys .platform == "darwin" , reason = "This test inexplicably fails" )
318
302
@pytest .mark .parametrize (
319
303
"collections" ,
320
304
[
321
- ("persönlich" ,),
322
- (
323
- "a" ,
324
- "A" ,
325
- ),
305
+ ("a" , "A" ),
326
306
("\ufffe " ,),
327
- ]
328
- + [
329
- collections_strategy .example ()
330
- for _ in range (settings .get_profile (settings ._current_profile ).max_examples )
307
+ ("Hello there!" ,),
308
+ ("Österreich" ,),
309
+ ("中国" , "x1" ),
310
+ ("한글" ,),
311
+ ("42a4ec99-b1c2-4859-b142-759112f2ca50" ,),
312
+ ("فلسطين" ,),
331
313
],
332
314
)
333
315
def test_create_collections (collections , tmpdir , runner ):
334
- # Hypothesis calls this tests in a way that fixtures are not reset, to tmpdir is the
335
- # same for each call.
336
- # This horrible hack creates a new subdirectory on each run, effectively giving us a
337
- # new tmpdir each run.
338
316
339
317
runner .write_with_general (
340
318
dedent (
You can’t perform that action at this time.
0 commit comments