From defd21b9abc27f2e93a76f8b419e2d5b5a6d16e7 Mon Sep 17 00:00:00 2001 From: mario4tier Date: Sun, 8 Nov 2026 23:07:32 -0500 Subject: [PATCH] tests: TA-Lib dev declares output signs on STOCHRSI and DPO, and dashes STOCHRSI's %D --- tests/test_abstract.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_abstract.py b/tests/test_abstract.py index 78dcedd98..cc6cc45f2 100644 --- a/tests/test_abstract.py +++ b/tests/test_abstract.py @@ -138,8 +138,10 @@ def test_info(): 'input_names': OrderedDict([('price', 'open')]), 'name': 'STOCHRSI', 'output_flags': OrderedDict([ - ('fastk', ['Line']), - ('fastd', ['Line']), + ('fastk', ['Line', 'Output can be positive', + 'Output can be zero']), + ('fastd', ['Dashed Line', 'Output can be positive', + 'Output can be negative', 'Output can be zero']), ]), 'output_names': ['fastk', 'fastd'], 'parameters': OrderedDict([ @@ -200,7 +202,8 @@ def test_flags_newer_than_0_8_1(): dpo = abstract.Function('DPO') assert 'An output is display-shifted' in dpo.function_flags assert dpo.output_flags == OrderedDict([ - ('real', ['Line', 'Output is display-shifted']), + ('real', ['Line', 'Output can be positive', 'Output can be negative', + 'Output can be zero', 'Output is display-shifted']), ]) ln_flags = abstract.Function('LN').function_flags