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_partial_test(NoTrend2dData,arbitrary_2d_data):
# check with no trend data
NoTrendRes = mk.partial_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 == 5205500.0
# check with arbitrary data
result = mk.partial_test(arbitrary_2d_data)
assert result.trend == 'no trend'
assert result.h == False
assert result.p == 0.06670496348739152
assert result.z == -1.8336567432191642
assert result.Tau == -0.07552758237689744
assert result.s == -282.53012319329804
assert result.var_s == 23740.695506142725
assert result.slope == -0.5634920634920635
assert result.intercept == 471.9761904761905
def test_partial_test(NoTrend2dData,arbitrary_2d_data):
# check with no trend data
NoTrendRes = mk.partial_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 == 5205500.0
# check with arbitrary data
result = mk.partial_test(arbitrary_2d_data)
assert result.trend == 'no trend'
assert result.h == False
assert result.p == 0.06670496348739152
assert result.z == -1.8336567432191642
assert result.Tau == -0.07552758237689744
assert result.s == -282.53012319329804