From a126edd7a9f2a72bf744a34c57aa9cb23568ba29 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 11 Apr 2022 12:38:52 +0300 Subject: Set up initial, failing tests for cell values --- tests/strategies.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/strategies.py (limited to 'tests/strategies.py') 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}" -- cgit v1.2.3