diff options
author | Frederick Muriuki Muriithi | 2022-04-11 12:38:52 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-11 12:38:52 +0300 |
commit | a126edd7a9f2a72bf744a34c57aa9cb23568ba29 (patch) | |
tree | ebfd5e30fa9f850454f81e3ee839c67cf46013fd /tests/strategies.py | |
parent | 7ea15269cb85c32e55ebcc6381de77810d898927 (diff) | |
download | gn-uploader-a126edd7a9f2a72bf744a34c57aa9cb23568ba29.tar.gz |
Set up initial, failing tests for cell values
Diffstat (limited to 'tests/strategies.py')
-rw-r--r-- | tests/strategies.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/strategies.py b/tests/strategies.py new file mode 100644 index 0000000..ccda362 --- /dev/null +++ b/tests/strategies.py @@ -0,0 +1,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}" |