File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- hypothesis>=3.1,<4 .0
1
+ hypothesis>=5.0 .0
2
2
pytest
3
3
pytest-localserver
4
4
pytest-subtesthack
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ def benchmark():
34
34
))
35
35
settings .register_profile ("deterministic" , settings (
36
36
derandomize = True ,
37
- perform_health_check = False ,
38
- suppress_health_check = [HealthCheck .too_slow ],
37
+ suppress_health_check = HealthCheck .all (),
39
38
))
40
39
41
40
if os .environ .get ('DETERMINISTIC_TESTS' , 'false' ).lower () == 'true' :
Original file line number Diff line number Diff line change 1
- from hypothesis import given , settings
1
+ from hypothesis import HealthCheck , given , settings
2
2
3
3
import pytest
4
4
11
11
12
12
13
13
@given (uid = uid_strategy )
14
- @settings (perform_health_check = False ) # Using the random module for UIDs
14
+ # Using the random module for UIDs:
15
+ @settings (suppress_health_check = HealthCheck .all ())
15
16
def test_repair_uids (uid ):
16
17
s = MemoryStorage ()
17
18
s .items = {
@@ -35,7 +36,8 @@ def test_repair_uids(uid):
35
36
36
37
37
38
@given (uid = uid_strategy .filter (lambda x : not href_safe (x )))
38
- @settings (perform_health_check = False ) # Using the random module for UIDs
39
+ # Using the random module for UIDs:
40
+ @settings (suppress_health_check = HealthCheck .all ())
39
41
def test_repair_unsafe_uids (uid ):
40
42
s = MemoryStorage ()
41
43
item = Item (u'BEGIN:VCARD\n UID:{}\n END:VCARD' .format (uid ))
You can’t perform that action at this time.
0 commit comments