Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
python-pyudev
hypothesis_settings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hypothesis_settings.patch of Package python-pyudev
Index: pyudev-0.24.1/tests/test_enumerate.py =================================================================== --- pyudev-0.24.1.orig/tests/test_enumerate.py +++ pyudev-0.24.1/tests/test_enumerate.py @@ -88,7 +88,7 @@ class TestEnumerator(object): @failed_health_check_wrapper @given(_CONTEXT_STRATEGY, _SUBSYSTEM_STRATEGY) - @settings(max_examples=10) + @settings(max_examples=10, deadline=None) def test_match_subsystem(self, context, subsystem): """ Subsystem match matches devices w/ correct subsystem. @@ -113,7 +113,7 @@ class TestEnumerator(object): @failed_health_check_wrapper @given(_CONTEXT_STRATEGY, _SUBSYSTEM_STRATEGY) - @settings(max_examples=1) + @settings(max_examples=1, deadline=2000) def test_match_subsystem_nomatch_complete(self, context, subsystem): """ Test that w/ respect to the universe of devices returned by @@ -131,7 +131,7 @@ class TestEnumerator(object): @failed_health_check_wrapper @given(_CONTEXT_STRATEGY, _MATCH_PROPERTY_STRATEGY.filter(lambda x: _is_bool(x[1]))) - @settings(max_examples=10) + @settings(max_examples=10, deadline=2000) def test_match_property_bool(self, context, pair): """ Verify that a probably boolean property lookup works. @@ -149,7 +149,7 @@ class TestEnumerator(object): @given( _CONTEXT_STRATEGY, device_strategy(filter_func=lambda d: d.parent is not None) ) - @settings(max_examples=5) + @settings(max_examples=5, deadline=2000) def test_match_parent(self, context, device): """ For a given device, verify that it is in its parent's children. @@ -175,7 +175,7 @@ class TestEnumeratorMatchCombinations(ob _SYSNAME_STRATEGY, _MATCH_PROPERTY_STRATEGY, ) - @settings(max_examples=10) + @settings(max_examples=10, deadline=2000) def test_match(self, context, subsystem, sysname, ppair): """ Test that matches from different categories are a conjunction. @@ -231,7 +231,7 @@ class TestEnumeratorMatchMethod(object): match_sys_name.assert_called_with(mock.sentinel.sys_name) @given(_ENUMERATOR_STRATEGY) - @settings(max_examples=1) + @settings(max_examples=1, deadline=2000) def test_match_passthrough_tag(self, enumerator): """ Test that special keyword tag results in a match_tag call. @@ -242,7 +242,7 @@ class TestEnumeratorMatchMethod(object): @_UDEV_TEST(172, "test_match_passthrough_parent") @given(_ENUMERATOR_STRATEGY) - @settings(max_examples=1) + @settings(max_examples=1, deadline=2000) def test_match_passthrough_parent(self, enumerator): """ Test that special keyword 'parent' results in a match parent call. @@ -254,7 +254,7 @@ class TestEnumeratorMatchMethod(object): match_parent.assert_called_with(mock.sentinel.parent) @given(_ENUMERATOR_STRATEGY) - @settings(max_examples=1) + @settings(max_examples=1, deadline=2000) def test_match_passthrough_property(self, enumerator): """ Test that non-special keyword args are treated as properties. Index: pyudev-0.24.1/tests/_device_tests/_device_tests.py =================================================================== --- pyudev-0.24.1.orig/tests/_device_tests/_device_tests.py +++ pyudev-0.24.1/tests/_device_tests/_device_tests.py @@ -61,7 +61,7 @@ class TestDevice(object): @pytest.mark.skipif(len(_devices) == 0, reason="no device with a parent") @_UDEV_TEST(172, "test_child_of_parents") @given(strategies.sampled_from(_devices)) - @settings(max_examples=5) + @settings(max_examples=5, deadline=2000) def test_child_of_parent(self, a_device): assert a_device in a_device.parent.children
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor