Skip to content
Snippets Groups Projects
Commit a48f0eab authored by Antoine Lambert's avatar Antoine Lambert
Browse files

conftest: Use fast hypothesis profile if none has been explicitely set

This will prevent bad surprises when users simply invoke pytest in the root folder
of swh-web as default profile makes tests execution slow and tests can fail depending
on the hypothesis version used.
parent 56fb8696
No related branches found
No related tags found
Loading
......@@ -45,6 +45,10 @@ settings.register_profile(
def pytest_configure(config):
# Use fast hypothesis profile by default if none has been
# explicitly specified in pytest option
if config.getoption('--hypothesis-profile') is None:
settings.load_profile('swh-web-fast')
# Small hack in order to be able to run the unit tests
# without static assets generated by webpack.
# Those assets are not really needed for the Python tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment