Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_decreasing_rate(a_1, a_2, max_it, curr_it, mode, expected):
if mode == "testerror":
with pytest.raises(Exception):
assert susi.decreasing_rate(
a_1, a_2, max_it, curr_it, mode) == expected
else:
assert susi.decreasing_rate(
a_1, a_2, max_it, curr_it, mode) == expected
def test_decreasing_rate(a_1, a_2, max_it, curr_it, mode, expected):
if mode == "testerror":
with pytest.raises(Exception):
assert susi.decreasing_rate(
a_1, a_2, max_it, curr_it, mode) == expected
else:
assert susi.decreasing_rate(
a_1, a_2, max_it, curr_it, mode) == expected