Skip to content

Commit

Permalink
Merge pull request #390 from lazka/hypothesis-ci-fix
Browse files Browse the repository at this point in the history
tests: fix hypothesis tests when running in CI
  • Loading branch information
lazka authored Nov 15, 2024
2 parents f06094f + c6fd0ce commit 9ad3a14
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/test_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@
import cairo

pytest.importorskip("hypothesis")
from hypothesis import given, strategies, assume, settings
from hypothesis import given, strategies, assume
from hypothesis.strategies import floats, integers

from .hypothesis_fspaths import fspaths


if "CI" in os.environ:
# CI can be slow, so be patient
# Also we can run more tests there
settings.register_profile(
"ci",
deadline=settings.default.deadline * 10,
max_examples=settings.default.max_examples * 5)
settings.load_profile("ci")


@pytest.fixture(scope='module')
def tempdir_path():
dir_ = tempfile.mkdtemp()
Expand Down

0 comments on commit 9ad3a14

Please sign in to comment.