aboutsummaryrefslogtreecommitdiff
path: root/tests/qc/qc/test_cells.py
blob: 8f1e9ea803f38f2fe1efd9b91ba6d4de75d22dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Test that values in cells within a line fulfill the required criteria"""

from hypothesis import given
from hypothesis import strategies as st

@given(num_str=st.from_regex("^(?!([0-9]+\.([0-9]{3}|[0-9]{6,}))).*", fullmatch=True))
def test_cell_value_errors_with_invalid_inputs(num_str):
    print(f"NUMBER STRING: {num_str}")
    assert False, "Not implemented"

@given(num_str=st.from_regex("[0-9]+\.([0-9]{1,2}|[0-9]{4,})", fullmatch=True))
def test_cell_average_value_errors_if_not_three_decimal_places(num_str):
    assert False, "Not implemented"

@given(num_str=st.from_regex("[0-9]+\.[0-9]{3}", fullmatch=True))
def test_cell_average_value_pass_if_three_decimal_places(num_str):
    assert False, "Not implemented"

@given(num_str=st.from_regex("[0-9]+\.([0-9]{0,5})", fullmatch=True))
def test_cell_standard_error_value_errors_if_less_than_six_decimal_places(num_str):
    assert False, "Not implemented"

@given(num_str=st.from_regex("[0-9]+\.[0-9]{6,}", fullmatch=True))
def test_cell_standard_error_value_pass_if_six_or_more_decimal_places(num_str):
    assert False, "Not implemented"