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_regional_test(NoTrend2dData,arbitrary_2d_data):
# check with no trend data
NoTrendRes = mk.regional_test(NoTrend2dData)
assert NoTrendRes.trend == 'no trend'
assert NoTrendRes.h == False
assert NoTrendRes.p == 1.0
assert NoTrendRes.z == 0
assert NoTrendRes.Tau == 0.0
assert NoTrendRes.s == 0.0
assert NoTrendRes.var_s == 0.0
assert NoTrendRes.slope == 0.0
# check with arbitrary data
result = mk.regional_test(arbitrary_2d_data)
assert result.trend == 'no trend'
assert result.h == False
assert result.p == 0.2613018311185482
assert result.z == -1.1233194854000186
assert result.Tau == -0.06185919343814081
def test_regional_test(NoTrend2dData,arbitrary_2d_data):
# check with no trend data
NoTrendRes = mk.regional_test(NoTrend2dData)
assert NoTrendRes.trend == 'no trend'
assert NoTrendRes.h == False
assert NoTrendRes.p == 1.0
assert NoTrendRes.z == 0
assert NoTrendRes.Tau == 0.0
assert NoTrendRes.s == 0.0
assert NoTrendRes.var_s == 0.0
assert NoTrendRes.slope == 0.0
# check with arbitrary data
result = mk.regional_test(arbitrary_2d_data)
assert result.trend == 'no trend'
assert result.h == False
assert result.p == 0.2613018311185482
assert result.z == -1.1233194854000186
assert result.Tau == -0.06185919343814081
assert result.s == -362.0
assert result.var_s == 103278.0
assert result.slope == -0.680446465481604