mirror of
https://github.com/correl/tornado-openapi3.git
synced 2025-04-09 17:00:12 -09:00
The deadline was not being overridden as described in the README, as the default profile is not mutable. This registers an additional CI profile disabling the deadline.
10 lines
258 B
Python
10 lines
258 B
Python
import os
|
|
|
|
from hypothesis import settings
|
|
|
|
settings.register_profile("ci", deadline=None)
|
|
settings.register_profile("dev", deadline=None, max_examples=10)
|
|
|
|
settings.load_profile(
|
|
os.getenv("HYPOTHESIS_PROFILE", "ci" if os.getenv("CI") else "default")
|
|
)
|