Debian Codegraph @

tests/conftest.py

raw
1 # Copyright 2009-2026 Joshua Bronson. All rights reserved.
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7 from hypothesis import settings
8
9
10 # deadline=None because hypothesis times each call in wall-clock, and the first call of any test
11 # can spend a few hundred ms on warm-up that later calls do not, which can trip the 200ms default
12 # when the machine is loaded.
13 settings.register_profile('less-examples', deadline=None, max_examples=200, stateful_step_count=100)
14 settings.register_profile('more-examples', deadline=None, max_examples=500, stateful_step_count=200)