Skip to content

Commit

Permalink
Complete tests configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Apr 2, 2021
1 parent be1d399 commit 8d6479a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import os
import platform

import pytest
from ground.base import (Context,
get_context)
from hypothesis import (HealthCheck,
settings)

on_azure_pipelines = bool(os.getenv('TF_BUILD', False))
is_pypy = platform.python_implementation() == 'PyPy'
settings.register_profile('default',
deadline=None,
max_examples=(settings.default.max_examples
// (1 + 3 * is_pypy)
if on_azure_pipelines
else settings.default.max_examples),
suppress_health_check=[HealthCheck.filter_too_much,
HealthCheck.too_slow])

Expand Down

0 comments on commit 8d6479a

Please sign in to comment.