Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9314121
conftest.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
712 B
Subscribers
None
conftest.py
View Options
from
hypothesis
import
settings
import
pytest
# define tests profile. Full documentation is at:
# https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles
settings
.
register_profile
(
"fast"
,
max_examples
=
5
,
deadline
=
5000
)
settings
.
register_profile
(
"slow"
,
max_examples
=
20
,
deadline
=
5000
)
pytest_plugins
=
[
"swh.core.github.pytest_plugin"
]
@pytest.fixture
def
swhmain
():
"""Yield an instance of the main `swh` click command that cleans the added
subcommands up on teardown."""
from
swh.core.cli
import
swh
as
_swhmain
commands
=
_swhmain
.
commands
.
copy
()
aliases
=
_swhmain
.
aliases
.
copy
()
yield
_swhmain
_swhmain
.
commands
=
commands
_swhmain
.
aliases
=
aliases
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Jul 3, 12:12 PM (1 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237839
Attached To
rDCORE Foundations and core functionalities
Event Timeline
Log In to Comment