aboutsummaryrefslogtreecommitdiff
path: root/tests/strategies.py
blob: ccda362948a73d93727cae29ba56a778ae41935a (plain)
1
2
3
4
5
6
7
8
"""Module holding custom data generation strategies"""

from hypothesis.strategies import characters, composite

@composite
def average_numbers_string(draw):
    num = draw(floats(allow_nan=False, allow_infinity=False,))
    return f"{num:.3f}"