mirror of
https://github.com/correl/tornado-openapi3.git
synced 2024-11-23 11:09:56 +00:00
Correl Roush
3704bfab49
Add a ci profile using more examples for automated testing and a dev profile for rapid local testing.
9 lines
261 B
Python
9 lines
261 B
Python
import os
|
|
|
|
from hypothesis import settings
|
|
|
|
settings.register_profile("dev", deadline=None, max_examples=10)
|
|
settings.register_profile("ci", max_examples=1000)
|
|
settings.load_profile(
|
|
os.getenv("HYPOTHESIS_PROFILE", "ci" if os.getenv("CI") else "default")
|
|
)
|