def test_functionMaxValue_non_numbers(): tab_list = ['12', '15', '125', '512', '2048'] with pytest.raises(ValueError): tobetested.function_max_value(tab_list)
def test_functionMaxValue_empty_table(): tab_list = [] with pytest.raises(ValueError): tobetested.function_max_value(tab_list)
def test_functionMaxValue_no_list(): tab_list = 250 with pytest.raises(ValueError): tobetested.function_max_value(tab_list)
def test_functionMaxValue_working1(): tab_list = [1, 2, 3, -5, 6, -9] test = tobetested.function_max_value(tab_list) assert test == (6, 4)